Iterator.cc
Go to the documentation of this file.
58 if (Adaptation::Config::needHistory && !thePlan.exhausted() && (dynamic_cast<ServiceSet *>(theGroup.getRaw()) || dynamic_cast<ServiceChain *>(theGroup.getRaw()))) {
CBDATA_NAMESPACED_CLASS_INIT(Adaptation, Iterator)
SBuf StringToSBuf(const String &s)
create a new SBuf from a String by copying contents
Definition: StringConvert.h:17
#define TexcHere(msg)
legacy convenience macro; it is not difficult to type Here() now
Definition: TextException.h:63
summarizes adaptation service answer for the noteAdaptationAnswer() API
Definition: Answer.h:23
static int service_iteration_limit
Definition: Config.h:46
DynamicServiceGroup configuration to remember future dynamic chains.
Definition: DynamicGroupCfg.h:21
a temporary service chain built upon another service request
Definition: ServiceGroups.h:111
static void Split(const ServiceFilter &filter, const String &ids, DynamicGroupCfg ¤t, DynamicGroupCfg &future)
separates dynamic services matching current location from future ones
Definition: ServiceGroups.cc:243
bool extractNextServices(String &value)
returns true, fills the value, and resets iff next services were set
Definition: History.cc:130
void setFutureServices(const DynamicGroupCfg &services)
sets future services for the Adaptation::AccessCheck to notice
Definition: History.cc:156
void recordAdaptationService(SBuf &srvId)
Definition: History.cc:150
Definition: Initiate.h:31
Iterator(Http::Message *virginHeader, HttpRequest *virginCause, const AccessLogEntryPointer &, const Adaptation::ServiceGroupPointer &aGroup)
Definition: Iterator.cc:22
bool updatePlan(bool adopt)
replace the current group and plan with service-proposed ones if needed
Definition: Iterator.cc:226
void handleAdaptedHeader(Http::Message *msg)
Definition: Iterator.cc:133
void noteAdaptationAnswer(const Answer &answer) override
Definition: Iterator.cc:115
void handleAdaptationError(bool final)
Definition: Iterator.cc:175
void handleAdaptationBlock(const Answer &answer)
Definition: Iterator.cc:166
void noteInitiatorAborted() override
Definition: Iterator.cc:159
a group of services that must be used one after another
Definition: ServiceGroups.h:100
information used to search for adaptation services
Definition: ServiceFilter.h:23
Definition: ServiceGroups.h:123
Definition: ServiceGroups.h:78
virtual Initiate * makeXactLauncher(Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp)=0
Definition: AsyncJob.h:32
Definition: HttpReply.h:25
Definition: HttpRequest.h:49
Adaptation::History::Pointer adaptHistory(bool createIfNone=false) const
Returns possibly nil history, creating it if requested.
Definition: HttpRequest.cc:404
Definition: SquidString.h:26
Definition: AccessCheck.h:25