#include <Options.h>

Collaboration diagram for Adaptation::Icap::Options:

Classes

class  TransferList
 
struct  Transfers
 

Public Types

enum  TransferKind {
  xferNone,
  xferPreview,
  xferIgnore,
  xferComplete
}
 
typedef void GetCallback (void *data, Options *options)
 

Public Member Functions

 Options ()
 
 ~Options ()
 
void configure (const HttpReply *reply)
 
bool valid () const
 
bool fresh () const
 
int ttl () const
 
time_t expire () const
 
time_t timestamp () const
 
TransferKind transferKind (const SBuf &urlPath) const
 

Static Public Member Functions

static void Get (ServiceRep::Pointer &service, GetCallback *cb, void *data)
 

Public Attributes

const char * error
 
std::vector< ICAP::Method > methods
 
String istag
 
String service
 
String serviceId
 
int max_connections
 
bool allow204
 
bool allow206
 
int preview
 

Protected Attributes

struct
Adaptation::Icap::Options::Transfers 
theTransfers
 
int theTTL
 
time_t theTimestamp
 

Private Member Functions

void cfgMethod (ICAP::Method m)
 
void cfgIntHeader (const HttpHeader *h, const char *fname, int &value)
 
void cfgTransferList (const HttpHeader *h, TransferList &l)
 

Detailed Description

Definition at line 25 of file Options.h.

Member Typedef Documentation

typedef void Adaptation::Icap::Options::GetCallback(void *data, Options *options)

Definition at line 29 of file Options.h.

Member Enumeration Documentation

Enumerator
xferNone 
xferPreview 
xferIgnore 
xferComplete 

Definition at line 44 of file Options.h.

Constructor & Destructor Documentation

Adaptation::Icap::Options::~Options ( )

Definition at line 39 of file Options.cc.

Member Function Documentation

void Adaptation::Icap::Options::cfgIntHeader ( const HttpHeader h,
const char *  fname,
int value 
)
private
void Adaptation::Icap::Options::cfgMethod ( ICAP::Method  m)
private

Definition at line 138 of file Options.cc.

References Adaptation::methodNone, and Must.

time_t Adaptation::Icap::Options::expire ( ) const

Definition at line 79 of file Options.cc.

References Must.

bool Adaptation::Icap::Options::fresh ( ) const

Definition at line 68 of file Options.cc.

References squid_curtime.

static void Adaptation::Icap::Options::Get ( ServiceRep::Pointer service,
GetCallback cb,
void *  data 
)
static
time_t Adaptation::Icap::Options::timestamp ( ) const
inline

Definition at line 42 of file Options.h.

References theTimestamp.

Adaptation::Icap::Options::TransferKind Adaptation::Icap::Options::transferKind ( const SBuf urlPath) const

Definition at line 47 of file Options.cc.

References debugs.

int Adaptation::Icap::Options::ttl ( ) const
bool Adaptation::Icap::Options::valid ( ) const

Definition at line 63 of file Options.cc.

References error().

Member Data Documentation

bool Adaptation::Icap::Options::allow204

Definition at line 58 of file Options.h.

bool Adaptation::Icap::Options::allow206

Definition at line 59 of file Options.h.

const char* Adaptation::Icap::Options::error

Definition at line 48 of file Options.h.

String Adaptation::Icap::Options::istag

Definition at line 52 of file Options.h.

int Adaptation::Icap::Options::max_connections

Definition at line 57 of file Options.h.

std::vector<ICAP::Method> Adaptation::Icap::Options::methods

Definition at line 51 of file Options.h.

int Adaptation::Icap::Options::preview

Definition at line 60 of file Options.h.

String Adaptation::Icap::Options::service

Definition at line 55 of file Options.h.

String Adaptation::Icap::Options::serviceId

Definition at line 56 of file Options.h.

time_t Adaptation::Icap::Options::theTimestamp
protected

Definition at line 92 of file Options.h.

Referenced by timestamp().

struct Adaptation::Icap::Options::Transfers Adaptation::Icap::Options::theTransfers
protected

Referenced by Options().

int Adaptation::Icap::Options::theTTL
protected

Definition at line 91 of file Options.h.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors