Inheritance diagram for UrnState:
Collaboration diagram for UrnState:

Public Member Functions

void * operator new (size_t size)
void operator delete (void *address)
void * toCbdata () noexcept
 UrnState (const AccessLogEntry::Pointer &anAle)
void created (StoreEntry *newEntry)
void start (HttpRequest *, StoreEntry *)
char * getHost (const SBuf &urlpath)
void setUriResFromRequest (HttpRequest *)
virtual ~UrnState ()

Public Attributes

StoreEntryentry = nullptr
store_clientsc = nullptr
StoreEntryurlres_e = nullptr
HttpRequest::Pointer request
HttpRequest::Pointer urlres_r
struct {
   bool   force_menu = false
char reqbuf [URN_REQBUF_SZ] = { '\0' }
int reqofs = 0

Protected Member Functions

bool startCollapsingOn (const StoreEntry &, const bool doingRevalidation)
bool mayInitiateCollapsing () const
 whether Squid configuration allows us to become a CF initiator More...
bool onCollapsingPath () const
 whether Squid configuration allows collapsing for this transaction More...

Private Member Functions

virtual LogTagsloggingTags ()
virtual void fillChecklist (ACLFilledChecklist &) const
 configure the ACL checklist with the current transaction state More...

Private Attributes

char * urlres = nullptr
AccessLogEntry::Pointer ale
 master transaction summary More...

Static Private Attributes

static cbdata_type CBDATA_UrnState = CBDATA_UNKNOWN

Detailed Description

Definition at line 32 of file

Constructor & Destructor Documentation

◆ UrnState()

UrnState::UrnState ( const AccessLogEntry::Pointer anAle)

Definition at line 37 of file

References created(), getHost(), setUriResFromRequest(), start(), and ~UrnState().

Referenced by urnStart().

◆ ~UrnState()

UrnState::~UrnState ( )

Definition at line 83 of file

References safe_free, and urlres.

Referenced by UrnState().

Member Function Documentation

◆ created()

◆ fillChecklist()

void UrnState::fillChecklist ( ACLFilledChecklist checklist) const

Implements StoreClient.

Definition at line 193 of file

References ACLFilledChecklist::al, ale, RefCount< C >::getRaw(), request, and ACLFilledChecklist::setRequest().

Referenced by loggingTags().

◆ getHost()

char * UrnState::getHost ( const SBuf urlpath)

FIXME: this appears to be parsing the URL. very badly.

Definition at line 135 of file

References SBuf::find(), SBuf::npos, p, SBufToCstring(), and SBuf::substr().

Referenced by setUriResFromRequest(), and UrnState().

◆ loggingTags()

virtual LogTags* UrnState::loggingTags ( )
LogTags (if the class logs transactions) or nil (otherwise)

Implements StoreClient.

Definition at line 60 of file

References ale, AccessLogEntry::cache, AccessLogEntry::CacheDetails::code, and fillChecklist().

◆ mayInitiateCollapsing()

bool StoreClient::mayInitiateCollapsing ( ) const

◆ onCollapsingPath()

◆ operator delete()

void UrnState::operator delete ( void *  address)

Definition at line 34 of file

◆ operator new()

void* UrnState::operator new ( size_t  size)

Definition at line 34 of file

◆ setUriResFromRequest()

◆ start()

void UrnState::start ( HttpRequest r,
StoreEntry e 

◆ startCollapsingOn()

bool StoreClient::startCollapsingOn ( const StoreEntry e,
const bool  doingRevalidation 
whether the caller must collapse on the given entry Before returning true, updates common collapsing-related stats. See also: StoreEntry::hittingRequiresCollapsing().

Definition at line 65 of file

References debugs, StoreEntry::hittingRequiresCollapsing(), StoreClient::loggingTags(), and StoreClient::onCollapsingPath().

Referenced by ICPState::confirmAndPrepHit(), created(), clientReplyContext::identifyFoundObject(), clientReplyContext::processExpired(), and StoreClient::~StoreClient().

◆ toCbdata()

void* UrnState::toCbdata ( )

Definition at line 34 of file

Member Data Documentation

◆ ale

AccessLogEntry::Pointer UrnState::ale

Definition at line 64 of file

Referenced by created(), fillChecklist(), and loggingTags().

◆ CBDATA_UrnState

cbdata_type UrnState::CBDATA_UrnState = CBDATA_UNKNOWN

Definition at line 34 of file

◆ entry

StoreEntry* UrnState::entry = nullptr

Definition at line 46 of file

Referenced by setUriResFromRequest(), start(), urnHandleReply(), and urnHandleReplyError().

◆ flags

struct { ... } UrnState::flags

◆ force_menu

bool UrnState::force_menu = false

Definition at line 53 of file

Referenced by urnHandleReply().

◆ reqbuf

char UrnState::reqbuf[URN_REQBUF_SZ] = { '\0' }

Definition at line 55 of file

Referenced by created(), and urnHandleReply().

◆ reqofs

int UrnState::reqofs = 0

Definition at line 56 of file

Referenced by created(), and urnHandleReply().

◆ request

HttpRequest::Pointer UrnState::request

Definition at line 49 of file

Referenced by fillChecklist(), start(), and urnHandleReply().

◆ sc

store_client* UrnState::sc = nullptr

Definition at line 47 of file

Referenced by created(), and urnHandleReply().

◆ urlres

char* UrnState::urlres = nullptr

Definition at line 63 of file

Referenced by created(), setUriResFromRequest(), start(), and ~UrnState().

◆ urlres_e

StoreEntry* UrnState::urlres_e = nullptr

Definition at line 48 of file

Referenced by created(), and urnHandleReply().

◆ urlres_r

HttpRequest::Pointer UrnState::urlres_r

Definition at line 50 of file

Referenced by created(), setUriResFromRequest(), and start().

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






Web Site Translations