libdap++ Updated for version 3.8.2
|
#include <HTTPCacheResponse.h>
Public Member Functions | |
HTTPCacheResponse (FILE *s, int status_code, vector< string > *headers, HTTPCache *c) | |
virtual | ~HTTPCacheResponse () |
Accessors | |
virtual vector< string > * | get_headers () const |
virtual string | get_file () const |
Mutators | |
virtual void | set_headers (vector< string > *h) |
Accessors | |
virtual int | get_status () const |
virtual FILE * | get_stream () const |
virtual ObjectType | get_type () const |
virtual string | get_version () const |
virtual string | get_protocol () const |
Mutators | |
virtual void | set_status (int s) |
virtual void | set_stream (FILE *s) |
virtual void | set_type (ObjectType o) |
virtual void | set_version (const string &v) |
virtual void | set_protocol (const string &p) |
Protected Member Functions | |
Suppressed default methods | |
HTTPCacheResponse () | |
HTTPCacheResponse (const HTTPCacheResponse &rs) | |
HTTPCacheResponse & | operator= (const HTTPCacheResponse &) |
Encapsulate a response. Instead of directly returning the FILE pointer from which a response is read, return an instance of this object.
Definition at line 44 of file HTTPCacheResponse.h.
libdap::HTTPCacheResponse::HTTPCacheResponse | ( | ) | [inline, protected] |
Definition at line 52 of file HTTPCacheResponse.h.
libdap::HTTPCacheResponse::HTTPCacheResponse | ( | const HTTPCacheResponse & | rs | ) | [inline, protected] |
Definition at line 54 of file HTTPCacheResponse.h.
libdap::HTTPCacheResponse::HTTPCacheResponse | ( | FILE * | s, |
int | status_code, | ||
vector< string > * | headers, | ||
HTTPCache * | c | ||
) | [inline] |
Build a Response object. Instances of this class are used to represent responses from a local HTTP/1.1 cache. The stream and headers pointer are passed to the parent (HTTPResponse); there's no temporary file for the parent to manage since the body is read from a file managed by the cache subsystem. This class releases the lock on the cache entry when the destructor is called.
Definition at line 69 of file HTTPCacheResponse.h.
virtual libdap::HTTPCacheResponse::~HTTPCacheResponse | ( | ) | [inline, virtual] |
Free the cache entry lock. Call the parent's destructor.
Definition at line 74 of file HTTPCacheResponse.h.
References DBG, DBGN, libdap::Response::get_stream(), and libdap::HTTPCache::release_cached_response().
virtual string libdap::HTTPResponse::get_file | ( | ) | const [inline, virtual, inherited] |
Definition at line 126 of file HTTPResponse.h.
virtual vector<string>* libdap::HTTPResponse::get_headers | ( | ) | const [inline, virtual, inherited] |
Definition at line 122 of file HTTPResponse.h.
Referenced by libdap::HTTPConnect::fetch_url().
virtual string libdap::Response::get_protocol | ( | ) | const [inline, virtual, inherited] |
Definition at line 127 of file Response.h.
Referenced by libdap::Connect::read_data_no_mime(), libdap::Connect::request_das(), libdap::Connect::request_das_url(), libdap::Connect::request_data(), libdap::Connect::request_data_ddx(), libdap::Connect::request_data_ddx_url(), libdap::Connect::request_data_url(), libdap::Connect::request_dds(), libdap::Connect::request_dds_url(), libdap::Connect::request_ddx(), libdap::Connect::request_ddx_url(), libdap::Connect::request_protocol(), and libdap::Connect::request_version().
virtual int libdap::Response::get_status | ( | ) | const [inline, virtual, inherited] |
Definition at line 111 of file Response.h.
Referenced by libdap::HTTPConnect::fetch_url().
virtual FILE* libdap::Response::get_stream | ( | ) | const [inline, virtual, inherited] |
Reimplemented in libdap::PipeResponse, and libdap::StdinResponse.
Definition at line 115 of file Response.h.
Referenced by main(), libdap::Connect::request_das(), libdap::Connect::request_das_url(), libdap::Connect::request_dds(), libdap::Connect::request_dds_url(), libdap::Connect::request_ddx(), libdap::Connect::request_ddx_url(), ~HTTPCacheResponse(), and libdap::HTTPResponse::~HTTPResponse().
virtual ObjectType libdap::Response::get_type | ( | ) | const [inline, virtual, inherited] |
Definition at line 119 of file Response.h.
References libdap::get_type().
Referenced by libdap::Connect::read_data_no_mime(), libdap::Connect::request_das(), libdap::Connect::request_das_url(), libdap::Connect::request_dds(), libdap::Connect::request_dds_url(), libdap::Connect::request_ddx(), and libdap::Connect::request_ddx_url().
virtual string libdap::Response::get_version | ( | ) | const [inline, virtual, inherited] |
Definition at line 123 of file Response.h.
Referenced by libdap::Connect::read_data_no_mime(), libdap::Connect::request_das(), libdap::Connect::request_das_url(), libdap::Connect::request_data(), libdap::Connect::request_data_ddx(), libdap::Connect::request_data_ddx_url(), libdap::Connect::request_data_url(), libdap::Connect::request_dds(), libdap::Connect::request_dds_url(), libdap::Connect::request_ddx(), libdap::Connect::request_ddx_url(), libdap::Connect::request_protocol(), and libdap::Connect::request_version().
HTTPCacheResponse& libdap::HTTPCacheResponse::operator= | ( | const HTTPCacheResponse & | ) | [inline, protected] |
Definition at line 56 of file HTTPCacheResponse.h.
virtual void libdap::HTTPResponse::set_headers | ( | vector< string > * | h | ) | [inline, virtual, inherited] |
Definition at line 134 of file HTTPResponse.h.
virtual void libdap::Response::set_protocol | ( | const string & | p | ) | [inline, virtual, inherited] |
Definition at line 151 of file Response.h.
Referenced by libdap::HTTPConnect::fetch_url().
virtual void libdap::Response::set_status | ( | int | s | ) | [inline, virtual, inherited] |
Definition at line 135 of file Response.h.
virtual void libdap::Response::set_stream | ( | FILE * | s | ) | [inline, virtual, inherited] |
Reimplemented in libdap::PipeResponse, and libdap::StdinResponse.
Definition at line 139 of file Response.h.
Referenced by libdap::HTTPResponse::~HTTPResponse().
virtual void libdap::Response::set_type | ( | ObjectType | o | ) | [inline, virtual, inherited] |
Definition at line 143 of file Response.h.
Referenced by libdap::HTTPConnect::fetch_url().
virtual void libdap::Response::set_version | ( | const string & | v | ) | [inline, virtual, inherited] |
Definition at line 147 of file Response.h.
Referenced by libdap::HTTPConnect::fetch_url().