HTTPCacheResponse Class Reference

#include <HTTPCacheResponse.h>

Inheritance diagram for HTTPCacheResponse:

Inheritance graph
[legend]
Collaboration diagram for HTTPCacheResponse:

Collaboration graph
[legend]
List of all members.

Suppressed default methods

 HTTPCacheResponse (const HTTPCacheResponse &rs)
 HTTPCacheResponse ()
HTTPCacheResponseoperator= (const HTTPCacheResponse &)

Public Member Functions

 HTTPCacheResponse (FILE *s, int status_code, vector< string > *headers, HTTPCache *c)
virtual ~HTTPCacheResponse ()
Accessors
virtual vector< string > * get_headers () const
Mutators
virtual void set_headers (vector< string > *h)

Detailed Description

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 41 of file HTTPCacheResponse.h.


Constructor & Destructor Documentation

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,
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 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, and HTTPCache::release_cached_response().

Here is the call graph for this function:


Member Function Documentation

virtual vector<string>* HTTPResponse::get_headers (  )  const [inline, virtual, inherited]

Definition at line 116 of file HTTPResponse.h.

Referenced by HTTPConnect::fetch_url().

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 124 of file HTTPResponse.h.


The documentation for this class was generated from the following file:
Generated on Fri Nov 30 10:52:17 2007 for libdap++ by  doxygen 1.5.1