Public Types | Public Member Functions | Static Public Member Functions | Data Fields

HTTPInfo Class Reference

#include <HTTP.h>

Collaboration diagram for HTTPInfo:
Collaboration graph
[legend]

Public Types

typedef HTTPCacheAlt::FragOffset FragOffset
 Import type.

Public Member Functions

 HTTPInfo ()
 ~HTTPInfo ()
void clear ()
bool valid () const
void create ()
void destroy ()
void copy (HTTPInfo *to_copy)
void copy_shallow (HTTPInfo *info)
void copy_frag_offsets_from (HTTPInfo *src)
HTTPInfooperator= (const HTTPInfo &m)
inkcoreapi int marshal_length ()
inkcoreapi int marshal (char *buf, int len)
void set_buffer_reference (RefCountObj *block_ref)
int get_handle (char *buf, int len)
int32_t id_get () const
int32_t rid_get ()
void id_set (int32_t id)
void rid_set (int32_t id)
INK_MD5 object_key_get ()
void object_key_get (INK_MD5 *)
bool compare_object_key (const INK_MD5 *)
int64_t object_size_get ()
void request_get (HTTPHdr *hdr)
void response_get (HTTPHdr *hdr)
HTTPHdrrequest_get ()
HTTPHdrresponse_get ()
URLrequest_url_get (URL *url=NULL)
time_t request_sent_time_get ()
time_t response_received_time_get ()
void object_key_set (INK_MD5 &md5)
void object_size_set (int64_t size)
void request_set (const HTTPHdr *req)
void response_set (const HTTPHdr *resp)
void request_sent_time_set (time_t t)
void response_received_time_set (time_t t)
FragOffsetget_frag_table ()
 Get the fragment table.
int get_frag_offset_count ()
 Get the # of fragment offsets.
void push_frag_offset (FragOffset offset)
 Add an offset to the end of the fragment offset table.

Static Public Member Functions

static int unmarshal (char *buf, int len, RefCountObj *block_ref)
static bool check_marshalled (char *buf, int len)

Data Fields

HTTPCacheAltm_alt

Detailed Description

Definition at line 1347 of file HTTP.h.


Member Typedef Documentation

Import type.

Definition at line 1350 of file HTTP.h.


Constructor & Destructor Documentation

HTTPInfo::HTTPInfo (  )  [inline]

Definition at line 1354 of file HTTP.h.

HTTPInfo::~HTTPInfo (  )  [inline]

Definition at line 1358 of file HTTP.h.

References clear().


Member Function Documentation

bool HTTPInfo::check_marshalled ( char *  buf,
int  len 
) [static]
void HTTPInfo::clear ( void   )  [inline]

Definition at line 1363 of file HTTP.h.

References m_alt.

Referenced by destroy(), get_handle(), HttpSM::setup_cache_write_transfer(), and ~HTTPInfo().

bool HTTPInfo::compare_object_key ( const INK_MD5 md5  )  [inline]

Definition at line 1474 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_object_key.

void HTTPInfo::copy ( HTTPInfo to_copy  ) 
void HTTPInfo::copy_frag_offsets_from ( HTTPInfo src  ) 

Definition at line 1829 of file HTTP.cc.

References HTTPCacheAlt::copy_frag_offsets_from(), and m_alt.

void HTTPInfo::copy_shallow ( HTTPInfo info  )  [inline]

Definition at line 1370 of file HTTP.h.

References m_alt.

void HTTPInfo::create (  ) 
void HTTPInfo::destroy (  )  [inline]
int HTTPInfo::get_frag_offset_count (  )  [inline]

Get the # of fragment offsets.

Note:
This is the size of the fragment offset table, and one less than the actual # of fragments.

Definition at line 1520 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_frag_offset_count.

HTTPInfo::FragOffset * HTTPInfo::get_frag_table (  )  [inline]

Get the fragment table.

Definition at line 1514 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_frag_offsets.

int HTTPInfo::get_handle ( char *  buf,
int  len 
)
int32_t HTTPInfo::id_get (  )  const [inline]

Definition at line 1380 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_id.

void HTTPInfo::id_set ( int32_t  id  )  [inline]

Definition at line 1383 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_id.

int HTTPInfo::marshal ( char *  buf,
int  len 
)
int HTTPInfo::marshal_length (  ) 
INK_MD5 HTTPInfo::object_key_get (  )  [inline]

Definition at line 1450 of file HTTP.h.

References m_alt, HTTPCacheAlt::m_object_key, and val.

void HTTPInfo::object_key_get ( INK_MD5 md5  )  [inline]

Definition at line 1464 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_object_key.

void HTTPInfo::object_key_set ( INK_MD5 md5  )  [inline]

Definition at line 1496 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_object_key.

int64_t HTTPInfo::object_size_get (  )  [inline]
void HTTPInfo::object_size_set ( int64_t  size  )  [inline]

Definition at line 1506 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_object_size.

HTTPInfo & HTTPInfo::operator= ( const HTTPInfo m  )  [inline]

Definition at line 1443 of file HTTP.h.

References m_alt.

void HTTPInfo::push_frag_offset ( FragOffset  offset  ) 
void HTTPInfo::request_get ( HTTPHdr hdr  )  [inline]
HTTPHdr* HTTPInfo::request_get (  )  [inline]

Definition at line 1394 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_request_hdr.

time_t HTTPInfo::request_sent_time_get (  )  [inline]
void HTTPInfo::request_sent_time_set ( time_t  t  )  [inline]

Definition at line 1408 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_request_sent_time.

Referenced by HttpSM::setup_cache_write_transfer().

void HTTPInfo::request_set ( const HTTPHdr req  )  [inline]
URL* HTTPInfo::request_url_get ( URL url = NULL  )  [inline]

Definition at line 1397 of file HTTP.h.

References m_alt, HTTPCacheAlt::m_request_hdr, and HTTPHdr::url_get().

void HTTPInfo::response_get ( HTTPHdr hdr  )  [inline]
HTTPHdr* HTTPInfo::response_get (  )  [inline]

Definition at line 1395 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_response_hdr.

time_t HTTPInfo::response_received_time_get (  )  [inline]
void HTTPInfo::response_received_time_set ( time_t  t  )  [inline]

Definition at line 1409 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_response_received_time.

Referenced by HttpSM::setup_cache_write_transfer().

void HTTPInfo::response_set ( const HTTPHdr resp  )  [inline]
int32_t HTTPInfo::rid_get (  )  [inline]

Definition at line 1381 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_rid.

void HTTPInfo::rid_set ( int32_t  id  )  [inline]

Definition at line 1384 of file HTTP.h.

References m_alt, and HTTPCacheAlt::m_rid.

void HTTPInfo::set_buffer_reference ( RefCountObj block_ref  ) 
int HTTPInfo::unmarshal ( char *  buf,
int  len,
RefCountObj block_ref 
) [static]
bool HTTPInfo::valid (  )  const [inline]

Field Documentation


The documentation for this class was generated from the following files: