Xaction.h
Go to the documentation of this file.
Definition: AccessLogEntry.h:41
Definition: ServiceRep.h:61
Definition: Xaction.h:44
int attempts
the number of times we tried to get to the service, including this time
Definition: Xaction.h:67
void handleSecuredPeer(Security::EncryptorAnswer &answer)
Definition: Xaction.cc:718
void noteCommConnected(const CommConnectCbParams &io)
called when the connection attempt to an ICAP service completes (successfully or not)
Definition: Xaction.cc:255
void noteCommWrote(const CommIoCbParams &io)
Definition: Xaction.cc:331
void callException(const std::exception &e) override
called when the job throws during an async call
Definition: Xaction.cc:374
Comm::ConnectionPointer connection
open and, if necessary, secured connection to the ICAP server (or nil)
Definition: Xaction.h:166
virtual void handleCommRead(size_t sz)=0
JobWait< Ssl::IcapPeerConnector > encryptionWait
waits for the established transport connection to be secured/encrypted
Definition: Xaction.h:163
virtual bool fillVirginHttpHeader(MemBuf &) const
Definition: Xaction.cc:677
bool parseHttpMsg(Http::Message *msg)
Definition: Xaction.cc:498
void useTransportConnection(const Comm::ConnectionPointer &)
Definition: Xaction.cc:270
void useIcapConnection(const Comm::ConnectionPointer &)
react to the availability of a fully-ready ICAP connection
Definition: Xaction.cc:292
void noteCommClosed(const CommCloseCbParams &io)
Definition: Xaction.cc:361
void dieOnConnectionFailure()
Definition: Xaction.cc:308
virtual AccessLogEntry::Pointer masterLogEntry()
Definition: Xaction.cc:105
Adaptation::Icap::ServiceRep::Pointer theService
Definition: Xaction.h:138
JobWait< Comm::ConnOpener > transportWait
waits for a transport connection to the ICAP server to be established/opened
Definition: Xaction.h:160
virtual void startShoveling()=0
starts sending/receiving ICAP messages
Xaction(const char *aTypeName, ServiceRep::Pointer &aService)
Definition: Xaction.cc:71
virtual void fillDoneStatus(MemBuf &buf) const
Definition: Xaction.cc:668
void disableRepeats(const char *reason)
Definition: Xaction.cc:125
virtual void detailError(const ErrorDetailPointer &)
record error detail if possible
Definition: Xaction.h:82
void dnsLookupDone(std::optional< Ip::Address >)
Definition: Xaction.cc:189
const char * status() const override
internal cleanup; do not call directly
Definition: Xaction.cc:636
void noteCommRead(const CommIoCbParams &io)
Definition: Xaction.cc:428
void noteInitiatorAborted() override
Definition: Xaction.cc:547
virtual void clearError()
clear stored error details, if any; used for retries/repeats
Definition: Xaction.h:118
virtual void fillPendingStatus(MemBuf &buf) const
Definition: Xaction.cc:650
void setOutcome(const XactOutcome &xo)
Definition: Xaction.cc:561
virtual void handleCommWrote(size_t sz)=0
void noteCommTimedout(const CommTimeoutCbParams &io)
Definition: Xaction.cc:349
Definition: Initiate.h:31
Definition: CommCalls.h:128
Definition: CommCalls.h:105
Definition: CommCalls.h:114
Definition: CommCalls.h:134
Definition: HttpRequest.h:49
Definition: MemBuf.h:24
Definition: EncryptorAnswer.h:22
Definition: AccessCheck.h:25
Definition: Xaction.cc:40