xrootd
Static Public Member Functions
XrdCl::MessageUtils Class Reference

#include <XrdClMessageUtils.hh>

List of all members.

Static Public Member Functions

static XRootDStatus WaitForStatus (SyncResponseHandler *handler)
 Wait and return the status of the query.
template<class Type >
static XrdCl::XRootDStatus WaitForResponse (SyncResponseHandler *handler, Type *&response)
 Wait for the response.
template<class Type >
static void CreateRequest (Message *&msg, Type *&req, uint32_t payloadSize=0)
 Create a message.
static Status SendMessage (const URL &url, Message *msg, ResponseHandler *handler, const MessageSendParams &sendParams)
 Send message.
static void ProcessSendParams (MessageSendParams &sendParams)
 Process sending params.
static void AppendCGI (Message *msg, const URL::ParamsMap &newCgi, bool replace)
 Append cgi to the one already present in the message.
static void MergeCGI (URL::ParamsMap &cgi1, const URL::ParamsMap &cgi2, bool replace)
 Merge cgi2 into cgi1.

Member Function Documentation

void XrdCl::MessageUtils::AppendCGI ( Message *  msg,
const URL::ParamsMap &  newCgi,
bool  replace 
)
static

Append cgi to the one already present in the message.

Append cgi to the on already present in the message

Parameters:
msgmessage concerned
newCgithe new cgi
replaceindicates whether, in case of a conflict, the new CGI parameter should replace an existing one or be appended to it using a comma

References ClientRequestHdr::dlen, XrdCl::Buffer::GetBuffer(), XrdCl::URL::GetParams(), ClientRequest::header, kXR_chmod, kXR_mkdir, kXR_mv, kXR_open, kXR_rm, kXR_rmdir, kXR_stat, kXR_truncate, MergeCGI(), XrdCl::Buffer::ReAllocate(), ClientRequestHdr::requestid, and XrdCl::XRootDTransport::SetDescription().

template<class Type >
static void XrdCl::MessageUtils::CreateRequest ( Message *&  msg,
Type *&  req,
uint32_t  payloadSize = 0 
)
inlinestatic
void XrdCl::MessageUtils::MergeCGI ( URL::ParamsMap &  cgi1,
const URL::ParamsMap &  cgi2,
bool  replace 
)
static

Merge cgi2 into cgi1.

Merge cgi2 into cgi1

Parameters:
cgi1cgi to be merged into
cgi2cgi to be merged in
replaceindicates whether, in case of a conflict, the new CGI parameter should replace an existing one or be appended to it using a comma

Referenced by AppendCGI(), XrdCl::FileStateHandler::OnOpen(), XrdCl::FileStateHandler::OnStateRedirection(), and XrdCl::ThirdPartyCopyJob::Run().

void XrdCl::MessageUtils::ProcessSendParams ( MessageSendParams &  sendParams)
static
Status XrdCl::MessageUtils::SendMessage ( const URL &  url,
Message *  msg,
ResponseHandler *  handler,
const MessageSendParams &  sendParams 
)
static
template<class Type >
static XrdCl::XRootDStatus XrdCl::MessageUtils::WaitForResponse ( SyncResponseHandler *  handler,
Type *&  response 
)
inlinestatic
static XRootDStatus XrdCl::MessageUtils::WaitForStatus ( SyncResponseHandler *  handler)
inlinestatic

The documentation for this class was generated from the following files: