#include <HTTPCacheResponse.h>
Inheritance diagram for HTTPCacheResponse:
Accessors | |
virtual string | get_protocol () const |
virtual int | get_status () const |
virtual FILE * | get_stream () const |
virtual ObjectType | get_type () const |
virtual string | get_version () const |
Mutators | |
virtual void | set_protocol (const string &p) |
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) |
Public Member Functions | |
HTTPCacheResponse (FILE *s, vector< string > *headers, HTTPCache *c) | |
virtual | ~HTTPCacheResponse () |
Accessors | |
virtual vector< string > * | get_headers () const |
Mutators | |
virtual void | set_headers (vector< string > *h) |
Accessors | |
virtual vector< string > * | get_headers () const |
Mutators | |
virtual void | set_headers (vector< string > *h) |
Protected Member Functions | |
Suppressed default methods | |
HTTPCacheResponse (const HTTPCacheResponse &rs) | |
HTTPCacheResponse () | |
HTTPCacheResponse & | operator= (const HTTPCacheResponse &) |
Definition at line 41 of file HTTPCacheResponse.h.
HTTPCacheResponse::HTTPCacheResponse | ( | ) | [inline, protected] |
Definition at line 49 of file HTTPCacheResponse.h.
HTTPCacheResponse::HTTPCacheResponse | ( | const HTTPCacheResponse & | rs | ) | [inline, protected] |
Definition at line 51 of file HTTPCacheResponse.h.
HTTPCacheResponse::HTTPCacheResponse | ( | FILE * | s, | |
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 66 of file HTTPCacheResponse.h.
virtual HTTPCacheResponse::~HTTPCacheResponse | ( | ) | [inline, virtual] |
Free the cache entry lock. Call the parent's destructor.
Definition at line 71 of file HTTPCacheResponse.h.
References DBG, DBGN, Response::get_stream(), and HTTPCache::release_cached_response().
Here is the call graph for this function:
virtual vector<string>* HTTPResponse::get_headers | ( | ) | const [inline, virtual, inherited] |
virtual string Response::get_protocol | ( | ) | const [inline, virtual, inherited] |
Definition at line 113 of file Response.h.
Referenced by Connect::read_data_no_mime(), Connect::request_das(), Connect::request_das_url(), Connect::request_data(), Connect::request_data_url(), Connect::request_dds(), Connect::request_dds_url(), Connect::request_ddx(), Connect::request_ddx_url(), Connect::request_protocol(), and Connect::request_version().
virtual int Response::get_status | ( | ) | const [inline, virtual, inherited] |
Definition at line 97 of file Response.h.
virtual FILE* Response::get_stream | ( | ) | const [inline, virtual, inherited] |
Reimplemented in PipeResponse, and StdinResponse.
Definition at line 101 of file Response.h.
Referenced by main(), Connect::request_das(), Connect::request_das_url(), Connect::request_dds(), Connect::request_dds_url(), Connect::request_ddx(), Connect::request_ddx_url(), ~HTTPCacheResponse(), and HTTPResponse::~HTTPResponse().
virtual ObjectType Response::get_type | ( | ) | const [inline, virtual, inherited] |
Definition at line 105 of file Response.h.
Referenced by Connect::request_das(), Connect::request_das_url(), Connect::request_dds(), Connect::request_dds_url(), Connect::request_ddx(), and Connect::request_ddx_url().
virtual string Response::get_version | ( | ) | const [inline, virtual, inherited] |
Definition at line 109 of file Response.h.
Referenced by Connect::read_data_no_mime(), Connect::request_das(), Connect::request_das_url(), Connect::request_data(), Connect::request_data_url(), Connect::request_dds(), Connect::request_dds_url(), Connect::request_ddx(), Connect::request_ddx_url(), Connect::request_protocol(), and Connect::request_version().
HTTPCacheResponse& HTTPCacheResponse::operator= | ( | const HTTPCacheResponse & | ) | [inline, protected] |
Definition at line 53 of file HTTPCacheResponse.h.
virtual void HTTPResponse::set_headers | ( | vector< string > * | h | ) | [inline, virtual, inherited] |
Definition at line 123 of file HTTPResponse.h.
virtual void Response::set_protocol | ( | const string & | p | ) | [inline, virtual, inherited] |
virtual void Response::set_status | ( | int | s | ) | [inline, virtual, inherited] |
Definition at line 121 of file Response.h.
virtual void Response::set_stream | ( | FILE * | s | ) | [inline, virtual, inherited] |
Reimplemented in PipeResponse, and StdinResponse.
Definition at line 125 of file Response.h.
Referenced by HTTPResponse::~HTTPResponse().
virtual void Response::set_type | ( | ObjectType | o | ) | [inline, virtual, inherited] |
virtual void Response::set_version | ( | const string & | v | ) | [inline, virtual, inherited] |