Handle an async response. More...
#include <XrdClXRootDResponses.hh>
Public Member Functions | |
| virtual | ~ResponseHandler () |
| virtual void | HandleResponse (XRootDStatus *status, AnyObject *response) |
| virtual void | HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList) |
Static Public Member Functions | |
| static ResponseHandler * | Wrap (std::function< void(XRootDStatus &, AnyObject &)> func) |
| static ResponseHandler * | Wrap (std::function< void(XRootDStatus *, AnyObject *)> func) |
Handle an async response.
Definition at line 1185 of file XrdClXRootDResponses.hh.
|
inlinevirtual |
Definition at line 1188 of file XrdClXRootDResponses.hh.
|
inlinevirtual |
Called when a response to associated request arrives or an error occurs
| status | status of the request |
| response | an object associated with the response (request dependent) |
Reimplemented in XrdCl::ChunkHandler, XrdCl::EcPgReadResponseHandler, XrdCl::FutureWrapper< Response >, XrdCl::FutureWrapper< void >, XrdCl::MetalinkReadHandler, XrdCl::PipelineHandler, XrdCl::SyncResponseHandler, XrdCl::TaskWrapper< Response, Return >, XrdCl::TaskWrapper< void, Return >, XrdCl::UnpackXAttr, XrdCl::UnpackXAttrStatus, XrdCl::ZipListHandler, XrdPosixFile, XrdPosixFileRH, and XrdSsiEvent.
Definition at line 1215 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::EcHandler::Close(), XrdClHttp::File::Close(), XrdCl::ZipArchive::CloseArchive(), XrdClHttp::File::Fcntl(), HandleResponseWithHosts(), XrdClHttp::Filesystem::Locate(), XrdClS3::Filesystem::MkDir(), XrdEc::Reader::Open(), XrdCl::ZipArchive::OpenArchive(), XrdCl::FileStateHandler::PgWrite(), XrdClHttp::File::Read(), XrdCl::ZipArchive::ReadFromImpl, XrdClS3::Filesystem::RmDir(), XrdClHttp::File::Stat(), XrdClHttp::File::VectorRead(), XrdEc::Reader::VectorRead(), Wrap(), and Wrap().
|
inlinevirtual |
Called when a response to associated request arrives or an error occurs
| status | status of the request |
| response | an object associated with the response (request dependent) |
| hostList | list of hosts the request was redirected to |
Reimplemented in XrdCl::AssignLastURLHandler, XrdCl::AssignLBHandler, XrdCl::ExOpenFuncWrapper, XrdCl::FunctionWrapper< Response >, XrdCl::FunctionWrapper< void >, XrdCl::MetalinkOpenHandler, XrdCl::NullResponseHandler, XrdCl::PipelineHandler, and XrdCl::RawWrapper.
Definition at line 1199 of file XrdClXRootDResponses.hh.
References HandleResponse().
Referenced by XrdCl::AssignLastURLHandler::HandleResponseWithHosts(), XrdCl::AssignLBHandler::HandleResponseWithHosts(), XrdCl::LocalFileTask::Run(), and XrdCl::FileStateHandler::Stat().
|
static |
Factory function for generating handler objects from lambdas
| func | : the callback, must not throw |
Definition at line 760 of file XrdClXRootDResponses.cc.
References XrdCl::Status::code, HandleResponse(), XrdCl::Status::IsOK(), and XrdCl::suContinue.
Referenced by XrdCl::EcHandler::Close(), and XrdCl::FileStateHandler::PgWrite().
|
static |
Factory function for generating handler objects from lambdas
| func | : the callback, must not throw |
Definition at line 792 of file XrdClXRootDResponses.cc.
References XrdCl::Status::code, HandleResponse(), XrdCl::Status::IsOK(), and XrdCl::suContinue.