XactionRep.cc
Go to the documentation of this file.
578 const size_t haveSize = static_cast<size_t>(p->buf().contentSize()); // TODO: make MemBuf use size_t?
737 adapted->sources |= service().cfg().connectionEncryption ? Http::Message::srcEcaps : Http::Message::srcEcap;
RefCount< AsyncCallT< Dialer > > asyncCall(int aDebugSection, int aDebugLevel, const char *aName, const Dialer &aDialer)
Definition: AsyncCall.h:156
CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Ecap::XactionRep, XactionRep)
Definition: MessageRep.h:148
Definition: XactionRep.h:34
void preserveVb(const char *reason)
Definition: XactionRep.cc:364
const char * status() const override
internal cleanup; do not call directly
Definition: XactionRep.cc:692
void noteMoreBodySpaceAvailable(RefCount< BodyPipe > bp) override
Definition: XactionRep.cc:626
void noteMoreBodyDataAvailable(RefCount< BodyPipe > bp) override
Definition: XactionRep.cc:643
void visitEachMetaHeader(libecap::NamedValueVisitor &visitor) const
Return the adaptation meta headers and their values.
Definition: XactionRep.cc:205
const libecap::Area clientIpValue() const
Definition: XactionRep.cc:122
void noteInitiatorAborted() override
Definition: XactionRep.cc:669
void forgetVb(const char *reason)
Definition: XactionRep.cc:380
const libecap::Area metaValue(const libecap::Name &name) const
Return the adaptation meta header value for the given header "name".
Definition: XactionRep.cc:182
const libecap::Area usernameValue() const
Definition: XactionRep.cc:147
void adaptationDelayed(const libecap::Delay &) override
Definition: XactionRep.cc:611
void noteAbContentAvailable() override
Definition: XactionRep.cc:593
void adaptationAborted() override
Definition: XactionRep.cc:619
const libecap::Area option(const libecap::Name &name) const override
Definition: XactionRep.cc:87
XactionRep(Http::Message *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp, const Adaptation::ServicePointer &service)
Definition: XactionRep.cc:47
libecap::Message & adapted() override
Definition: XactionRep.cc:317
void noteAbContentDone(bool atEnd) override
Definition: XactionRep.cc:583
void updateHistory(Http::Message *adapted)
Definition: XactionRep.cc:459
void visitEachOption(libecap::NamedValueVisitor &visitor) const override
Definition: XactionRep.cc:103
void updateSources(Http::Message *adapted)
Definition: XactionRep.cc:735
const libecap::Area masterxSharedValue(const libecap::Name &name) const
Definition: XactionRep.cc:165
void noteBodyProducerAborted(RefCount< BodyPipe > bp) override
Definition: XactionRep.cc:660
void noteBodyProductionEnded(RefCount< BodyPipe > bp) override
Definition: XactionRep.cc:651
libecap::Message & virgin() override
Definition: XactionRep.cc:304
const libecap::Message & cause() override
Definition: XactionRep.cc:310
void master(const AdapterXaction &aMaster)
Definition: XactionRep.cc:72
libecap::shared_ptr< libecap::adapter::Xaction > AdapterXaction
Definition: XactionRep.h:41
libecap::Area vbContent(libecap::size_type offset, libecap::size_type size) override
Definition: XactionRep.cc:545
void useAdapted(const libecap::shared_ptr< libecap::Message > &msg) override
Definition: XactionRep.cc:413
void noteBodyConsumerAborted(RefCount< BodyPipe > bp) override
Definition: XactionRep.cc:633
void vbContentShift(libecap::size_type size) override
Definition: XactionRep.cc:569
int recordXactStart(const String &serviceId, const timeval &when, bool retrying)
record the start of a xact, return xact history ID
Definition: History.cc:51
void updateXxRecord(const char *name, const String &value)
sets or resets a cross-transactional database record
Definition: History.cc:105
bool getXxRecord(String &name, String &value) const
returns true and fills the record fields iff there is a db record
Definition: History.cc:111
void updateNextServices(const String &services)
sets or resets next services for the Adaptation::Iterator to notice
Definition: History.cc:121
void recordMeta(const HttpHeader *lm)
store the last meta header fields received from the adaptation service
Definition: History.cc:140
void recordXactFinish(int hid)
record the end of a xact identified by its history ID
Definition: History.cc:61
Definition: Initiate.h:31
Definition: Message.h:26
Definition: Service.h:28
Definition: AsyncJob.h:32
bool stillConsuming(const Consumer::Pointer &consumer) const
Definition: BodyPipe.h:132
bool setConsumerIfNotLate(const Consumer::Pointer &aConsumer)
Definition: BodyPipe.cc:228
bool stillProducing(const Producer::Pointer &producer) const
Definition: BodyPipe.h:121
void enableAutoConsumption()
start or continue consuming when producing without consumer
Definition: BodyPipe.cc:316
Definition: HttpHeader.h:75
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
MasterXaction::Pointer masterXaction
the master transaction this request belongs to. Never nil.
Definition: HttpRequest.h:238
Adaptation::History::Pointer adaptLogHistory() const
Returns possibly nil history, creating it if adapt. logging is enabled.
Definition: HttpRequest.cc:415
Auth::UserRequest::Pointer auth_user_request
Definition: HttpRequest.h:127
Definition: Address.h:41
char * toStr(char *buf, const unsigned int blen, int force=AF_UNSPEC) const
Definition: Address.cc:792
Definition: MemBuf.h:24
Definition: Notes.h:173
Definition: AsyncJobCalls.h:91
a libecap Visitor for converting adapter transaction options to HttpHeader
Definition: XactionRep.cc:32
void visit(const Name &name, const Area &value) override
Definition: XactionRep.cc:40
void appendf(const char *fmt,...) PRINTF_FORMAT_ARG2
Append operation with printf-style arguments.
Definition: Packable.h:61
Definition: SquidString.h:26
#define MAX_IPSTRLEN
Length of buffer that needs to be allocated to old a null-terminated IP-string.
Definition: forward.h:25
Definition: AccessCheck.h:25
struct timeval current_time
the current UNIX time in timeval {seconds, microseconds} format
Definition: gadgets.cc:17