#include <Acl.h>

Collaboration diagram for Acl::Answer:

Public Member Functions

 Answer (const aclMatchCode aCode, int aKind=0)
 
 Answer ()
 
bool operator== (const aclMatchCode aCode) const
 
bool operator!= (const aclMatchCode aCode) const
 
bool operator== (const Answer allow) const
 
 operator aclMatchCode () const
 
bool allowed () const
 
bool denied () const
 
bool conflicted () const
 whether Squid is uncertain about the allowed() or denied() answer More...
 

Public Attributes

aclMatchCode code
 ACCESS_* code. More...
 
int kind
 which custom access list verb matched More...
 

Detailed Description

Definition at line 115 of file Acl.h.

Constructor & Destructor Documentation

◆ Answer() [1/2]

Acl::Answer::Answer ( const aclMatchCode  aCode,
int  aKind = 0 
)
inline

Definition at line 119 of file Acl.h.

◆ Answer() [2/2]

Acl::Answer::Answer ( )
inline

Definition at line 121 of file Acl.h.

Member Function Documentation

◆ allowed()

bool Acl::Answer::allowed ( ) const
inline

Whether an "allow" rule matched. If in doubt, use this popular method. Also use this method to treat exceptional ACCESS_DUNNO and ACCESS_AUTH_REQUIRED outcomes as if a "deny" rule matched. See also: denied().

Definition at line 143 of file Acl.h.

References ACCESS_ALLOWED, and code.

Referenced by accessLogLogTo(), aclFindNfMarkConfig(), aclMapTOS(), Acl::AllowOrDeny(), Client::blockCaching(), clientReplyContext::blockedHit(), HttpReply::calcMaxBodySize(), Adaptation::Icap::Launcher::canRepeat(), Ssl::PeekingPeerConnector::checkForPeekAndSpliceDone(), ClientRequestContext::clientAccessCheckDone(), clientFollowXForwardedForCheck(), clientRedirectAccessCheckDone(), clientStoreIdAccessCheckDone(), FwdState::connectStart(), DelayId::DelayClient(), external_acl_entry_expired(), external_acl_grace_expired(), HttpStateData::finishingBrokenPost(), getOutgoingAddress(), HttpRequest::getRangeOffsetLimit(), HttpStateData::handle1xx(), Ftp::Server::handleUploadRequest(), httpHdrAdd(), httpHdrMangle(), httpsSslBumpAccessCheckDone(), httpsSslBumpStep2AccessCheckDone(), icpAccessAllowed(), ClientHttpRequest::logRequest(), HttpRequest::manager(), external_acl::maybeCacheable(), Adaptation::AccessCheck::noteAnswer(), StoreClient::onCollapsingPath(), peerAllowedToUse(), clientReplyContext::processReplyAccessResult(), ConnStateData::proxyProtocolValidateClient(), Ftp::Client::sendPassive(), ConnStateData::serveDelayedError(), snmpDecodePacket(), ssl_verify_cb(), ClientRequestContext::sslBumpAccessCheckDone(), Security::PeerConnector::sslCrtvdCheckForErrors(), and ConnStateData::whenClientIpKnown().

◆ conflicted()

bool Acl::Answer::conflicted ( ) const
inline

Definition at line 152 of file Acl.h.

Referenced by clientFollowXForwardedForCheck().

◆ denied()

bool Acl::Answer::denied ( ) const
inline

Whether a "deny" rule matched. Avoid this rarely used method. Use this method (only) to treat exceptional ACCESS_DUNNO and ACCESS_AUTH_REQUIRED outcomes as if an "allow" rule matched. See also: allowed().

Definition at line 149 of file Acl.h.

References ACCESS_DENIED, and code.

Referenced by ClientRequestContext::checkNoCacheDone(), FwdState::Start(), and tunnelStart().

◆ operator aclMatchCode()

Acl::Answer::operator aclMatchCode ( ) const
inline

Definition at line 135 of file Acl.h.

References code.

◆ operator!=()

bool Acl::Answer::operator!= ( const aclMatchCode  aCode) const
inline

Definition at line 127 of file Acl.h.

◆ operator==() [1/2]

bool Acl::Answer::operator== ( const aclMatchCode  aCode) const
inline

Definition at line 123 of file Acl.h.

References code.

◆ operator==() [2/2]

bool Acl::Answer::operator== ( const Answer  allow) const
inline

Definition at line 131 of file Acl.h.

References code, code, and kind.

Member Data Documentation

◆ code

aclMatchCode Acl::Answer::code

Definition at line 154 of file Acl.h.

Referenced by operator==().

◆ kind


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors