#include <HttpHdrScTarget.h>

Collaboration diagram for HttpHdrScTarget:

Public Member Functions

 HttpHdrScTarget (const char *target_)
 
 HttpHdrScTarget (const String &target_)
 
 HttpHdrScTarget (const HttpHdrScTarget &t)
 
bool hasNoStore () const
 
void noStore (bool v)
 
bool noStore () const
 
void clearNoStore ()
 
bool hasNoStoreRemote () const
 
void noStoreRemote (bool v)
 
bool noStoreRemote () const
 
void clearNoStoreRemote ()
 
bool hasMaxAge () const
 
void maxAge (int v)
 
int maxAge () const
 
void clearMaxAge ()
 
bool hasMaxStale () const
 
void maxStale (int v)
 
int maxStale () const
 
void clearMaxStale ()
 
bool hasContent () const
 
void Content (const String &v)
 
String content () const
 
void clearContent ()
 
bool hasTarget () const
 
String Target () const
 
void mergeWith (const HttpHdrScTarget *new_sc)
 
void packInto (Packable *p) const
 
void updateStats (StatHist *) const
 

Static Public Attributes

static const int MAX_AGE_UNSET =-1
 
static const int MAX_STALE_UNSET =0
 

Private Member Functions

 MEMPROXY_CLASS (HttpHdrScTarget)
 
bool isSet (http_hdr_sc_type id) const
 
void setMask (http_hdr_sc_type id, bool newval)
 

Private Attributes

int mask
 
int max_age
 
int max_stale
 
String content_
 
String target
 
dlink_node node
 

Friends

class HttpHdrSc
 

Detailed Description

Representation of HTTP Surogate-Control header field targeted directive

See Also
HttpHdrSc

Definition at line 23 of file HttpHdrScTarget.h.

Constructor & Destructor Documentation

HttpHdrScTarget::HttpHdrScTarget ( const char *  target_)
inline

Definition at line 33 of file HttpHdrScTarget.h.

HttpHdrScTarget::HttpHdrScTarget ( const String target_)
inline

Definition at line 35 of file HttpHdrScTarget.h.

HttpHdrScTarget::HttpHdrScTarget ( const HttpHdrScTarget t)
inline

Definition at line 37 of file HttpHdrScTarget.h.

Member Function Documentation

void HttpHdrScTarget::clearContent ( )
inline

Definition at line 76 of file HttpHdrScTarget.h.

References String::clean(), content_, SC_CONTENT, and setMask().

Referenced by HttpHdrSc::parse().

void HttpHdrScTarget::clearMaxAge ( )
inline

Definition at line 62 of file HttpHdrScTarget.h.

References max_age, MAX_AGE_UNSET, SC_MAX_AGE, and setMask().

Referenced by HttpHdrSc::parse().

void HttpHdrScTarget::clearMaxStale ( )
inline

Definition at line 68 of file HttpHdrScTarget.h.

References max_stale, and MAX_STALE_UNSET.

Referenced by HttpHdrSc::parse().

void HttpHdrScTarget::clearNoStore ( )
inline

Definition at line 44 of file HttpHdrScTarget.h.

References SC_NO_STORE, and setMask().

void HttpHdrScTarget::clearNoStoreRemote ( )
inline

Definition at line 49 of file HttpHdrScTarget.h.

References SC_NO_STORE_REMOTE, and setMask().

void HttpHdrScTarget::Content ( const String v)
inline

Definition at line 71 of file HttpHdrScTarget.h.

References content_, SC_CONTENT, and setMask().

Referenced by mergeWith().

String HttpHdrScTarget::content ( ) const
inline

Definition at line 75 of file HttpHdrScTarget.h.

References content_.

Referenced by esiEnableProcessing(), and mergeWith().

bool HttpHdrScTarget::hasContent ( ) const
inline

Definition at line 70 of file HttpHdrScTarget.h.

References isSet(), and SC_CONTENT.

Referenced by esiEnableProcessing(), and mergeWith().

bool HttpHdrScTarget::hasMaxAge ( ) const
inline

Definition at line 51 of file HttpHdrScTarget.h.

References isSet(), and SC_MAX_AGE.

Referenced by mergeWith(), and HttpStateData::processSurrogateControl().

bool HttpHdrScTarget::hasMaxStale ( ) const
inline

Definition at line 65 of file HttpHdrScTarget.h.

References max_stale, and MAX_STALE_UNSET.

bool HttpHdrScTarget::hasNoStore ( ) const
inline

Definition at line 41 of file HttpHdrScTarget.h.

References isSet(), and SC_NO_STORE.

Referenced by mergeWith(), and HttpStateData::processSurrogateControl().

bool HttpHdrScTarget::hasNoStoreRemote ( ) const
inline

Definition at line 46 of file HttpHdrScTarget.h.

References isSet(), and SC_NO_STORE_REMOTE.

Referenced by mergeWith().

bool HttpHdrScTarget::hasTarget ( ) const
inline

Definition at line 78 of file HttpHdrScTarget.h.

References String::size(), and target.

Referenced by packInto().

bool HttpHdrScTarget::isSet ( http_hdr_sc_type  id) const
inlineprivate
void HttpHdrScTarget::maxAge ( int  v)
inline
int HttpHdrScTarget::maxAge ( ) const
inline

Definition at line 61 of file HttpHdrScTarget.h.

References max_age.

Referenced by mergeWith().

void HttpHdrScTarget::maxStale ( int  v)
inline

Definition at line 66 of file HttpHdrScTarget.h.

References max_stale.

Referenced by mergeWith(), HttpHdrSc::parse(), and HttpStateData::processSurrogateControl().

int HttpHdrScTarget::maxStale ( ) const
inline

Definition at line 67 of file HttpHdrScTarget.h.

References max_stale.

Referenced by mergeWith().

HttpHdrScTarget::MEMPROXY_CLASS ( HttpHdrScTarget  )
private
void HttpHdrScTarget::mergeWith ( const HttpHdrScTarget new_sc)
void HttpHdrScTarget::noStore ( bool  v)
inline

Definition at line 42 of file HttpHdrScTarget.h.

References SC_NO_STORE, and setMask().

Referenced by HttpHdrSc::parse().

bool HttpHdrScTarget::noStore ( ) const
inline

Definition at line 43 of file HttpHdrScTarget.h.

References isSet(), and SC_NO_STORE.

Referenced by mergeWith().

void HttpHdrScTarget::noStoreRemote ( bool  v)
inline

Definition at line 47 of file HttpHdrScTarget.h.

References SC_NO_STORE_REMOTE, and setMask().

Referenced by HttpHdrSc::parse(), and HttpStateData::processSurrogateControl().

bool HttpHdrScTarget::noStoreRemote ( ) const
inline

Definition at line 48 of file HttpHdrScTarget.h.

References isSet(), and SC_NO_STORE_REMOTE.

Referenced by mergeWith().

void HttpHdrScTarget::packInto ( Packable p) const
void HttpHdrScTarget::setMask ( http_hdr_sc_type  id,
bool  newval 
)
inlineprivate
String HttpHdrScTarget::Target ( ) const
inline

Definition at line 79 of file HttpHdrScTarget.h.

References target.

void HttpHdrScTarget::updateStats ( StatHist hist) const

Definition at line 42 of file HttpHdrScTarget.cc.

References StatHist::count(), isSet(), SC_ENUM_END, and SC_NO_STORE.

Friends And Related Function Documentation

friend class HttpHdrSc
friend

Definition at line 28 of file HttpHdrScTarget.h.

Member Data Documentation

String HttpHdrScTarget::content_
private

Definition at line 99 of file HttpHdrScTarget.h.

Referenced by clearContent(), Content(), content(), packInto(), and HttpHdrSc::parse().

int HttpHdrScTarget::mask
private

Definition at line 96 of file HttpHdrScTarget.h.

Referenced by isSet(), and setMask().

int HttpHdrScTarget::max_age
private

Definition at line 97 of file HttpHdrScTarget.h.

Referenced by clearMaxAge(), maxAge(), and packInto().

const int HttpHdrScTarget::MAX_AGE_UNSET =-1
static

Definition at line 30 of file HttpHdrScTarget.h.

Referenced by clearMaxAge(), and maxAge().

int HttpHdrScTarget::max_stale
private

Definition at line 98 of file HttpHdrScTarget.h.

Referenced by clearMaxStale(), hasMaxStale(), and maxStale().

const int HttpHdrScTarget::MAX_STALE_UNSET =0
static

Definition at line 31 of file HttpHdrScTarget.h.

Referenced by clearMaxStale(), and hasMaxStale().

dlink_node HttpHdrScTarget::node
private
String HttpHdrScTarget::target
private

Definition at line 100 of file HttpHdrScTarget.h.

Referenced by HttpHdrSc::findTarget(), hasTarget(), packInto(), and Target().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors