libdap++
Updated for version 3.14.0
|
#include <HTTPCacheResponse.h>
Public Member Functions | |
HTTPCacheResponse (FILE *s, int status_code, vector< string > *headers, HTTPCache *c) | |
HTTPCacheResponse (FILE *s, int status_code, vector< string > *headers, const string &file_name, HTTPCache *c) | |
void | transform_to_cpp () |
virtual | ~HTTPCacheResponse () |
Accessors | |
virtual std::vector< std::string > * | get_headers () const |
virtual std::string | get_file () const |
Mutators | |
virtual void | set_headers (std::vector< std::string > *h) |
virtual void | set_file (const std::string &n) |
getters | |
virtual int | get_status () const |
virtual FILE * | get_stream () const |
virtual std::istream * | get_cpp_stream () const |
virtual ObjectType | get_type () const |
virtual std::string | get_version () const |
virtual std::string | get_protocol () const |
setters | |
virtual void | set_status (int s) |
virtual void | set_stream (FILE *s) |
virtual void | set_cpp_stream (std::istream *s) |
virtual void | set_type (ObjectType o) |
virtual void | set_version (const std::string &v) |
virtual void | set_protocol (const std::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.
|
protected |
|
protected |
|
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 64 of file HTTPCacheResponse.h.
|
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 74 of file HTTPCacheResponse.h.
|
inlinevirtual |
Free the cache entry lock. Call the parent's destructor.
Definition at line 80 of file HTTPCacheResponse.h.
References DBG, DBGN, libdap::Response::get_stream(), libdap::HTTPCache::release_cached_response(), and libdap::HTTPResponse::set_file().
|
inlinevirtualinherited |
Reimplemented in libdap::StdinResponse.
Definition at line 107 of file Response.h.
Referenced by libdap::D4Connect::request_dap4_data(), libdap::D4Connect::request_dmr(), and libdap::HTTPResponse::~HTTPResponse().
|
inlinevirtualinherited |
Definition at line 159 of file HTTPResponse.h.
|
inlinevirtualinherited |
Definition at line 158 of file HTTPResponse.h.
Referenced by libdap::HTTPConnect::fetch_url(), and main().
|
inlinevirtualinherited |
Definition at line 111 of file Response.h.
Referenced by libdap::Connect::read_data_no_mime(), libdap::D4Connect::request_dap4_data(), 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::D4Connect::request_dmr(), libdap::Connect::request_protocol(), and libdap::Connect::request_version().
|
inlinevirtualinherited |
Definition at line 105 of file Response.h.
Referenced by libdap::HTTPConnect::fetch_url().
|
inlinevirtualinherited |
Reimplemented in libdap::PipeResponse, and libdap::StdinResponse.
Definition at line 106 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().
|
inlinevirtualinherited |
Definition at line 109 of file Response.h.
Referenced by libdap::D4Connect::read_data(), libdap::D4Connect::read_data_no_mime(), libdap::Connect::read_data_no_mime(), libdap::D4Connect::read_dmr(), libdap::D4Connect::read_dmr_no_mime(), libdap::D4Connect::request_dap4_data(), 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(), and libdap::D4Connect::request_dmr().
|
inlinevirtualinherited |
Definition at line 110 of file Response.h.
Referenced by libdap::D4Connect::read_data_no_mime(), libdap::Connect::read_data_no_mime(), libdap::D4Connect::read_dmr_no_mime(), libdap::D4Connect::request_dap4_data(), 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::D4Connect::request_dmr(), libdap::Connect::request_protocol(), and libdap::Connect::request_version().
|
protected |
|
inlinevirtualinherited |
Reimplemented in libdap::StdinResponse.
Definition at line 119 of file Response.h.
Referenced by libdap::HTTPResponse::transform_to_cpp(), and libdap::HTTPResponse::~HTTPResponse().
|
inlinevirtualinherited |
Definition at line 165 of file HTTPResponse.h.
Referenced by ~HTTPCacheResponse().
|
inlinevirtualinherited |
Definition at line 164 of file HTTPResponse.h.
|
inlinevirtualinherited |
Definition at line 123 of file Response.h.
Referenced by libdap::HTTPConnect::fetch_url().
|
inlinevirtualinherited |
Definition at line 116 of file Response.h.
|
inlinevirtualinherited |
Reimplemented in libdap::PipeResponse, and libdap::StdinResponse.
Definition at line 118 of file Response.h.
Referenced by libdap::HTTPResponse::~HTTPResponse().
|
inlinevirtualinherited |
Definition at line 121 of file Response.h.
Referenced by libdap::HTTPConnect::fetch_url(), libdap::D4Connect::read_data_no_mime(), and libdap::D4Connect::read_dmr_no_mime().
|
inlinevirtualinherited |
Definition at line 122 of file Response.h.
Referenced by libdap::HTTPConnect::fetch_url().
|
inlineinherited |
Build a new HTTPResponse object that works with C++ streams. Assume that the FILE* references a disk file.
Definition at line 148 of file HTTPResponse.h.
References libdap::binary, and libdap::Response::set_cpp_stream().
Referenced by libdap::HTTPConnect::fetch_url().