An access control record. More...
#include <IPAllow.h>
Public Types | |
typedef std::set< std::string > | MethodSet |
Public Member Functions | |
AclRecord () | |
Default constructor. | |
AclRecord (uint32_t method_mask) | |
AclRecord (uint32_t method_mask, int ln, const MethodSet &nonstandard_methods, bool deny_nonstandard_methods) | |
bool | isEmpty () const |
bool | isMethodAllowed (int method_wksidx) const |
bool | isNonstandardMethodAllowed (const std::string &method_str) const |
Static Public Member Functions | |
static uint32_t | MethodIdxToMask (int wksidx) |
Data Fields | |
uint32_t | _method_mask |
int | _src_line |
MethodSet | _nonstandard_methods |
bool | _deny_nonstandard_methods |
Static Public Attributes | |
static const uint32_t | ALL_METHOD_MASK = ~0 |
An access control record.
It has the methods permitted and the source line.
Definition at line 56 of file IPAllow.h.
typedef std::set<std::string> AclRecord::MethodSet |
AclRecord::AclRecord | ( | ) | [inline] |
AclRecord::AclRecord | ( | uint32_t | method_mask, | |
int | ln, | |||
const MethodSet & | nonstandard_methods, | |||
bool | deny_nonstandard_methods | |||
) | [inline] |
bool AclRecord::isEmpty | ( | ) | const [inline] |
Definition at line 77 of file IPAllow.h.
References _method_mask, and _nonstandard_methods.
Referenced by HttpSessionAccept::accept().
bool AclRecord::isMethodAllowed | ( | int | method_wksidx | ) | const [inline] |
Definition at line 81 of file IPAllow.h.
References _method_mask, and MethodIdxToMask().
Referenced by HttpTransact::process_quick_http_filter().
bool AclRecord::isNonstandardMethodAllowed | ( | const std::string & | method_str | ) | const [inline] |
Definition at line 85 of file IPAllow.h.
References _deny_nonstandard_methods, _method_mask, _nonstandard_methods, and ALL_METHOD_MASK.
Referenced by HttpTransact::process_quick_http_filter().
static uint32_t AclRecord::MethodIdxToMask | ( | int | wksidx | ) | [inline, static] |
Definition at line 75 of file IPAllow.h.
References HTTP_WKSIDX_CONNECT.
Referenced by isMethodAllowed().
Definition at line 61 of file IPAllow.h.
Referenced by isNonstandardMethodAllowed().
uint32_t AclRecord::_method_mask |
Definition at line 57 of file IPAllow.h.
Referenced by isEmpty(), isMethodAllowed(), isNonstandardMethodAllowed(), IpAllow::Print(), and HttpTransact::process_quick_http_filter().
Definition at line 60 of file IPAllow.h.
Referenced by isEmpty(), isNonstandardMethodAllowed(), and IpAllow::Print().
Definition at line 58 of file IPAllow.h.
Referenced by IpAllow::Print().
const uint32_t AclRecord::ALL_METHOD_MASK = ~0 [static] |
Definition at line 62 of file IPAllow.h.
Referenced by isNonstandardMethodAllowed(), IpAllow::Print(), and HttpTransact::process_quick_http_filter().