Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Static Public Attributes

AclRecord Struct Reference

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

Detailed Description

An access control record.

It has the methods permitted and the source line.

Definition at line 56 of file IPAllow.h.


Member Typedef Documentation

typedef std::set<std::string> AclRecord::MethodSet

Definition at line 59 of file IPAllow.h.


Constructor & Destructor Documentation

AclRecord::AclRecord (  )  [inline]

Default constructor.

Present only to make Vec<> happy, do not use.

Definition at line 66 of file IPAllow.h.

AclRecord::AclRecord ( uint32_t  method_mask  )  [inline]

Definition at line 68 of file IPAllow.h.

AclRecord::AclRecord ( uint32_t  method_mask,
int  ln,
const MethodSet nonstandard_methods,
bool  deny_nonstandard_methods 
) [inline]

Definition at line 71 of file IPAllow.h.


Member Function Documentation

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]
static uint32_t AclRecord::MethodIdxToMask ( int  wksidx  )  [inline, static]

Definition at line 75 of file IPAllow.h.

References HTTP_WKSIDX_CONNECT.

Referenced by isMethodAllowed().


Field Documentation

Definition at line 61 of file IPAllow.h.

Referenced by isNonstandardMethodAllowed().

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]

The documentation for this struct was generated from the following file: