Go to the documentation of this file.
25 #ifndef __XRD_CL_MESSAGE_UTILS_HH__
26 #define __XRD_CL_MESSAGE_UTILS_HH__
35 class LocalFileHandler;
178 resp->
Get( response );
179 resp->
Set( (
int *)0 );
192 template<
class Request>
195 uint32_t payloadSize = 0 )
197 msg =
new Message(
sizeof(Request) + payloadSize );
239 const std::string &newPath );
256 #endif // __XRD_CL_MESSAGE_UTILS_HH__
uint16_t timeout
Definition: XrdClMessageUtils.hh:133
Definition: XrdClMessageUtils.hh:128
Handle an async response.
Definition: XrdClXRootDResponses.hh:854
void WaitForResponse()
Wait for the arrival of the response.
Definition: XrdClMessageUtils.hh:90
AnyObject * pResponse
Definition: XrdClMessageUtils.hh:103
XRootDStatus * pStatus
Definition: XrdClMessageUtils.hh:102
Definition: XrdClLocalFileHandler.hh:32
Definition: XrdSysPthread.hh:129
const char * GetBuffer(uint32_t offset=0) const
Get the message buffer.
Definition: XrdClBuffer.hh:72
bool followRedirects
Definition: XrdClMessageUtils.hh:136
void Get(Type &object)
Retrieve the object being held.
Definition: XrdClAnyObject.hh:78
time_t expires
Definition: XrdClMessageUtils.hh:134
void Set(Type object, bool own=true)
Definition: XrdClAnyObject.hh:59
const uint16_t errInternal
Internal error.
Definition: XrdClStatus.hh:55
Synchronize the response.
Definition: XrdClMessageUtils.hh:40
The message representation used throughout the system.
Definition: XrdClMessage.hh:29
HostInfo loadBalancer
Definition: XrdClMessageUtils.hh:135
uint16_t redirectLimit
Definition: XrdClMessageUtils.hh:141
void Broadcast()
Definition: XrdSysPthread.hh:89
static void ProcessSendParams(MessageSendParams &sendParams)
Process sending params.
Request status.
Definition: XrdClXRootDResponses.hh:212
static XRootDStatus WaitForStatus(SyncResponseHandler *handler)
Wait and return the status of the query.
Definition: XrdClMessageUtils.hh:150
static Status RedirectMessage(const URL &url, Message *msg, ResponseHandler *handler, MessageSendParams &sendParams, LocalFileHandler *lFileHandler)
Redirect message.
Definition: XrdSysPthread.hh:78
std::vector< ChunkInfo > ChunkList
List of chunks.
Definition: XrdClXRootDResponses.hh:784
std::map< std::string, std::string > ParamsMap
Definition: XrdClURL.hh:33
static void RewriteCGIAndPath(Message *msg, const URL::ParamsMap &newCgi, bool replace, const std::string &newPath)
static void MergeCGI(URL::ParamsMap &cgi1, const URL::ParamsMap &cgi2, bool replace)
Definition: XrdClMessageUtils.hh:144
static void CreateRequest(Message *&msg, Request *&req, uint32_t payloadSize=0)
Create a message.
Definition: XrdClMessageUtils.hh:193
ChunkList * chunkList
Definition: XrdClMessageUtils.hh:140
bool stateful
Definition: XrdClMessageUtils.hh:138
HostList * hostList
Definition: XrdClMessageUtils.hh:139
XrdSysCondVar pCondVar
Definition: XrdClMessageUtils.hh:104
XRootDStatus * GetStatus()
Get the status.
Definition: XrdClMessageUtils.hh:74
virtual void HandleResponse(XRootDStatus *status, AnyObject *response)
Handle the response.
Definition: XrdClMessageUtils.hh:62
Definition: XrdClMessageUtils.hh:111
Definition: XrdClAnyObject.hh:25
bool chunkedResponse
Definition: XrdClMessageUtils.hh:137
std::vector< HostInfo > HostList
Definition: XrdClXRootDResponses.hh:849
virtual ~SyncResponseHandler()
Destructor.
Definition: XrdClMessageUtils.hh:54
MessageSendParams()
Definition: XrdClMessageUtils.hh:130
const uint16_t stError
An error occurred that could potentially be retried.
Definition: XrdClStatus.hh:32
static XrdCl::XRootDStatus WaitForResponse(SyncResponseHandler *handler, Type *&response)
Wait for the response.
Definition: XrdClMessageUtils.hh:163
Definition: XrdClXRootDResponses.hh:837
static Status SendMessage(const URL &url, Message *msg, ResponseHandler *handler, const MessageSendParams &sendParams, LocalFileHandler *lFileHandler)
Send message.
Procedure execution status.
Definition: XrdClStatus.hh:109
URL representation.
Definition: XrdClURL.hh:30
SyncResponseHandler()
Constructor.
Definition: XrdClMessageUtils.hh:46
void Zero()
Zero.
Definition: XrdClBuffer.hh:124
SyncResponseHandler & operator=(const SyncResponseHandler &other)
virtual void HandleResponseWithHosts(XrdCl::XRootDStatus *status, XrdCl::AnyObject *response, XrdCl::HostList *hostList)
Definition: XrdClMessageUtils.hh:117
Definition: XrdClAnyObject.hh:32
AnyObject * GetResponse()
Get the response.
Definition: XrdClMessageUtils.hh:82