#include <HasComponentData.h>
Public Member Functions | |
ACLHasComponentData () | |
bool | match (ACLChecklist *) override |
SBufList | dump () const override |
void | parse () override |
bool | empty () const override |
virtual const Acl::Options & | lineOptions () |
supported ACL "line" options (e.g., "-i") More... | |
virtual void | prepareForUse () |
Private Types | |
enum | ComponentKind { coRequest = 0 , coResponse , coAle , coEnd } |
typedef bool(ACLChecklist::* | ComponentCheck) () const |
Private Member Functions | |
MEMPROXY_CLASS (ACLHasComponentData) | |
void | parseComponent (const char *token) |
Private Attributes | |
std::vector< ComponentCheck > | componentMethods |
component check callbacks, ordered by component kind ID More... | |
Static Private Attributes | |
static const SBuf | RequestStr |
static const SBuf | ResponseStr |
static const SBuf | AleStr |
Detailed Description
Definition at line 16 of file HasComponentData.h.
Member Typedef Documentation
◆ ComponentCheck
|
private |
Definition at line 37 of file HasComponentData.h.
Member Enumeration Documentation
◆ ComponentKind
|
private |
Enumerator | |
---|---|
coRequest | |
coResponse | |
coAle | |
coEnd |
Definition at line 30 of file HasComponentData.h.
Constructor & Destructor Documentation
◆ ACLHasComponentData()
ACLHasComponentData::ACLHasComponentData | ( | ) |
Definition at line 19 of file HasComponentData.cc.
Member Function Documentation
◆ dump()
|
overridevirtual |
Implements ACLData< ACLChecklist * >.
Definition at line 52 of file HasComponentData.cc.
References AleStr, coAle, componentMethods, coRequest, coResponse, RequestStr, and ResponseStr.
◆ empty()
|
inlineoverridevirtual |
Implements ACLData< ACLChecklist * >.
Definition at line 27 of file HasComponentData.h.
◆ lineOptions()
|
inlinevirtualinherited |
◆ match()
|
overridevirtual |
Implements ACLData< ACLChecklist * >.
Definition at line 43 of file HasComponentData.cc.
References componentMethods.
◆ MEMPROXY_CLASS()
|
private |
◆ parse()
|
overridevirtual |
Implements ACLData< ACLChecklist * >.
Definition at line 24 of file HasComponentData.cc.
References DBG_CRITICAL, debugs, parseComponent(), self_destruct(), and ConfigParser::strtokFile().
◆ parseComponent()
|
private |
Definition at line 65 of file HasComponentData.cc.
References AleStr, SBuf::cmp(), coAle, componentMethods, coRequest, coResponse, DBG_CRITICAL, debugs, ACLChecklist::hasAle(), ACLChecklist::hasReply(), ACLChecklist::hasRequest(), RequestStr, ResponseStr, and self_destruct().
Referenced by parse().
◆ prepareForUse()
|
inlinevirtualinherited |
Member Data Documentation
◆ AleStr
|
staticprivate |
Definition at line 35 of file HasComponentData.h.
Referenced by dump(), and parseComponent().
◆ componentMethods
|
private |
Definition at line 39 of file HasComponentData.h.
Referenced by dump(), match(), and parseComponent().
◆ RequestStr
|
staticprivate |
Definition at line 33 of file HasComponentData.h.
Referenced by dump(), and parseComponent().
◆ ResponseStr
|
staticprivate |
Definition at line 34 of file HasComponentData.h.
Referenced by dump(), and parseComponent().
The documentation for this class was generated from the following files:
- src/acl/HasComponentData.h
- src/acl/HasComponentData.cc