#include <Options.h>
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
Member Typedef Documentation
◆ GetCallback
typedef void Adaptation::Icap::Options::GetCallback(void *data, Options *options) |
Member Enumeration Documentation
◆ TransferKind
Constructor & Destructor Documentation
◆ Options()
Adaptation::Icap::Options::Options | ( | ) |
Definition at line 17 of file Options.cc.
References Adaptation::Icap::Options::Transfers::byDefault, Adaptation::Icap::Options::Transfers::complete, Adaptation::Icap::Options::Transfers::ignore, Adaptation::Icap::Options::TransferList::kind, Adaptation::Icap::Options::TransferList::name, Adaptation::Icap::Options::Transfers::preview, theTransfers, xferComplete, xferIgnore, and xferPreview.
◆ ~Options()
Adaptation::Icap::Options::~Options | ( | ) |
Definition at line 38 of file Options.cc.
Member Function Documentation
◆ cfgIntHeader()
|
private |
Definition at line 144 of file Options.cc.
References debugs, HttpHeader::getByName(), String::size(), String::termedBuf(), and xisdigit.
◆ cfgMethod()
|
private |
Definition at line 137 of file Options.cc.
References Adaptation::methodNone, and Must.
◆ cfgTransferList()
|
private |
Definition at line 156 of file Options.cc.
References debugs, HttpHeader::getByName(), Adaptation::Icap::Options::TransferList::name, Adaptation::Icap::Options::TransferList::parse(), and Adaptation::Icap::Options::TransferList::report().
◆ configure()
void Adaptation::Icap::Options::configure | ( | const HttpReply * | reply | ) |
Definition at line 84 of file Options.cc.
References Http::ALLOW, Http::DATE, DBG_IMPORTANT, debugs, error(), HttpHeader::getByName(), HttpHeader::getTime(), HttpHeader::hasByNameListMember(), HttpHeader::hasListMember(), Http::Message::header, Adaptation::methodReqmod, Adaptation::methodRespmod, Http::scOkay, String::size(), HttpReply::sline, squid_curtime, and Http::StatusLine::status().
Referenced by Adaptation::Icap::ServiceRep::noteAdaptationAnswer().
◆ expire()
time_t Adaptation::Icap::Options::expire | ( | ) | const |
Definition at line 78 of file Options.cc.
References Must.
◆ fresh()
bool Adaptation::Icap::Options::fresh | ( | ) | const |
Definition at line 67 of file Options.cc.
References squid_curtime.
◆ Get()
|
static |
◆ timestamp()
|
inline |
Definition at line 42 of file Options.h.
References theTimestamp.
◆ transferKind()
Adaptation::Icap::Options::TransferKind Adaptation::Icap::Options::transferKind | ( | const SBuf & | urlPath | ) | const |
Definition at line 46 of file Options.cc.
References debugs.
◆ ttl()
int Adaptation::Icap::Options::ttl | ( | ) | const |
Definition at line 72 of file Options.cc.
References Adaptation::Icap::Config::default_options_ttl, Must, and Adaptation::Icap::TheConfig.
◆ valid()
bool Adaptation::Icap::Options::valid | ( | ) | const |
Definition at line 62 of file Options.cc.
References error().
Member Data Documentation
◆ allow204
◆ allow206
◆ error
◆ istag
◆ max_connections
◆ methods
std::vector<ICAP::Method> Adaptation::Icap::Options::methods |
◆ preview
◆ service
◆ serviceId
◆ theTimestamp
|
protected |
Definition at line 92 of file Options.h.
Referenced by timestamp().
◆ theTransfers
|
protected |
Referenced by Options().
◆ theTTL
The documentation for this class was generated from the following files:
- src/adaptation/icap/Options.h
- src/adaptation/icap/Options.cc