summarizes adaptation service answer for the noteAdaptationAnswer() API More...
#include <Answer.h>
Public Types | |
enum | Kind { akForward , akBlock , akError } |
helps interpret other members without a class hierarchy More... | |
Public Member Functions | |
std::ostream & | print (std::ostream &os) const |
Static Public Member Functions | |
static Answer | Error (bool final) |
create an akError answer More... | |
static Answer | Forward (Http::Message *aMsg) |
create an akForward answer More... | |
static Answer | Block (const String &aRule) |
create an akBlock answer More... | |
Public Attributes | |
Http::MessagePointer | message |
HTTP request or response to forward. More... | |
String | ruleId |
ACL (or similar rule) name that blocked forwarding. More... | |
bool | final |
whether the error, if any, cannot be bypassed More... | |
Kind | kind |
the type of the answer More... | |
Private Member Functions | |
Answer (Kind aKind) | |
use static creators instead More... | |
Detailed Description
Member Enumeration Documentation
◆ Kind
Constructor & Destructor Documentation
◆ Answer()
Member Function Documentation
◆ Block()
|
static |
Definition at line 35 of file Answer.cc.
References debugs, and ruleId.
Referenced by Adaptation::Ecap::XactionRep::blockVirgin().
◆ Error()
|
static |
◆ Forward()
|
static |
Definition at line 26 of file Answer.cc.
References debugs, and message.
Referenced by Adaptation::Iterator::handleAdaptationError(), Adaptation::Icap::OptXact::handleCommRead(), Adaptation::Icap::ModXact::startSending(), Adaptation::Iterator::step(), Adaptation::Ecap::XactionRep::useAdapted(), and Adaptation::Ecap::XactionRep::useVirgin().
◆ print()
std::ostream & Adaptation::Answer::print | ( | std::ostream & | os | ) | const |
Definition at line 44 of file Answer.cc.
Referenced by Adaptation::operator<<().
Member Data Documentation
◆ final
bool Adaptation::Answer::final |
Definition at line 41 of file Answer.h.
Referenced by Error(), ClientHttpRequest::noteAdaptationAnswer(), Client::noteAdaptationAnswer(), and Adaptation::Iterator::noteAdaptationAnswer().
◆ kind
Kind Adaptation::Answer::kind |
Definition at line 42 of file Answer.h.
Referenced by ClientHttpRequest::noteAdaptationAnswer(), Client::noteAdaptationAnswer(), Adaptation::Icap::Launcher::noteAdaptationAnswer(), Adaptation::Icap::ServiceRep::noteAdaptationAnswer(), and Adaptation::Iterator::noteAdaptationAnswer().
◆ message
Http::MessagePointer Adaptation::Answer::message |
Definition at line 39 of file Answer.h.
Referenced by Forward(), ClientHttpRequest::noteAdaptationAnswer(), Client::noteAdaptationAnswer(), Adaptation::Icap::ServiceRep::noteAdaptationAnswer(), and Adaptation::Iterator::noteAdaptationAnswer().
◆ ruleId
String Adaptation::Answer::ruleId |
Definition at line 40 of file Answer.h.
Referenced by Block(), ClientHttpRequest::handleAdaptationBlock(), and Client::handleAdaptationBlocked().
The documentation for this class was generated from the following files: