summarizes adaptation service answer for the noteAdaptationAnswer() API More...

#include <Answer.h>

Collaboration diagram for Adaptation::Answer:

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

Definition at line 22 of file Answer.h.

Member Enumeration Documentation

Enumerator
akForward 

forward the supplied adapted HTTP message

akBlock 

block or deny the master xaction; see authority

akError 

no adapted message will come; see bypassable

Definition at line 26 of file Answer.h.

Constructor & Destructor Documentation

Adaptation::Answer::Answer ( Kind  aKind)
explicitprivate

Definition at line 49 of file Answer.cc.

Member Function Documentation

Adaptation::Answer Adaptation::Answer::Block ( const String aRule)
static

Definition at line 35 of file Answer.cc.

References debugs, HERE(), and ruleId.

Referenced by Adaptation::Ecap::XactionRep::blockVirgin().

Adaptation::Answer Adaptation::Answer::Error ( bool  final)
static

Definition at line 17 of file Answer.cc.

References akError, debugs, final, and HERE().

Referenced by Adaptation::Initiate::tellQueryAborted().

std::ostream & Adaptation::Answer::print ( std::ostream &  os) const

Definition at line 44 of file Answer.cc.

Referenced by Adaptation::operator<<().

Member Data Documentation

bool Adaptation::Answer::final
String Adaptation::Answer::ruleId

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors