#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

◆ GetCallback

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

Definition at line 29 of file Options.h.

Member Enumeration Documentation

◆ TransferKind

Enumerator
xferNone 
xferPreview 
xferIgnore 
xferComplete 

Definition at line 44 of file Options.h.

Constructor & Destructor Documentation

◆ Options()

◆ ~Options()

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

Definition at line 39 of file Options.cc.

Member Function Documentation

◆ cfgIntHeader()

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

Definition at line 145 of file Options.cc.

References debugs, HttpHeader::getByName(), HERE(), String::size(), String::termedBuf(), and xisdigit.

Referenced by configure().

◆ cfgMethod()

void Adaptation::Icap::Options::cfgMethod ( ICAP::Method  m)
private

Definition at line 138 of file Options.cc.

References Adaptation::methodNone, methods, and Must.

Referenced by configure().

◆ cfgTransferList()

◆ configure()

◆ expire()

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

Definition at line 79 of file Options.cc.

References Must, theTimestamp, ttl(), and valid().

Referenced by fresh(), and Adaptation::Icap::ServiceRep::optionsFetchTime().

◆ fresh()

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

◆ Get()

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

◆ timestamp()

time_t Adaptation::Icap::Options::timestamp ( ) const
inline

Definition at line 42 of file Options.h.

References theTimestamp.

Referenced by Adaptation::Icap::ServiceRep::checkOptions().

◆ transferKind()

◆ ttl()

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

◆ valid()

Member Data Documentation

◆ allow204

bool Adaptation::Icap::Options::allow204

Definition at line 58 of file Options.h.

Referenced by configure().

◆ allow206

bool Adaptation::Icap::Options::allow206

Definition at line 59 of file Options.h.

Referenced by Adaptation::Icap::ServiceRep::allows206(), and configure().

◆ error

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

Definition at line 48 of file Options.h.

Referenced by Adaptation::Icap::ServiceRep::checkOptions(), configure(), and valid().

◆ istag

String Adaptation::Icap::Options::istag

Definition at line 52 of file Options.h.

Referenced by configure().

◆ max_connections

int Adaptation::Icap::Options::max_connections

Definition at line 57 of file Options.h.

Referenced by configure(), and Adaptation::Icap::ServiceRep::setMaxConnections().

◆ methods

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

Definition at line 51 of file Options.h.

Referenced by cfgMethod(), and Adaptation::Icap::ServiceRep::checkOptions().

◆ preview

int Adaptation::Icap::Options::preview

Definition at line 60 of file Options.h.

Referenced by configure(), and Adaptation::Icap::ServiceRep::wantsPreview().

◆ service

String Adaptation::Icap::Options::service

Definition at line 55 of file Options.h.

Referenced by configure().

◆ serviceId

String Adaptation::Icap::Options::serviceId

Definition at line 56 of file Options.h.

Referenced by configure().

◆ theTimestamp

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

Definition at line 92 of file Options.h.

Referenced by configure(), expire(), and timestamp().

◆ theTransfers

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

◆ theTTL

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

Definition at line 91 of file Options.h.

Referenced by configure(), and ttl().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors