19 #ifndef __XRD_CL_MESSAGE_HH__
20 #define __XRD_CL_MESSAGE_HH__
38 Buffer( size ), pIsMarshalled( false ), pSessionId(0), pVirtReqID( 0 )
48 Buffer( std::move( msg ) ), pIsMarshalled( msg.pIsMarshalled ),
49 pSessionId( std::move( msg.pSessionId ) ), pVirtReqID( msg.pVirtReqID )
58 Steal( std::move( msg ) );
59 pIsMarshalled = msg.pIsMarshalled;
60 pSessionId = std::move( msg.pSessionId );
61 pVirtReqID = msg.pVirtReqID;
83 pIsMarshalled = isMarshalled;
91 pDescription = description;
108 return pObfuscatedDescription;
116 pSessionId = sessionId;
132 pVirtReqID = virtReqID;
146 std::string pDescription;
148 std::string pObfuscatedDescription;
std::string obfuscateAuth(const std::string &input)
Binary blob representation.
void Steal(Buffer &&buffer)
The message representation used throughout the system.
virtual ~Message()
Destructor.
const std::string & GetObfuscatedDescription() const
Get the description of the message with authz parameter obfuscated.
const std::string & GetDescription() const
Get the description of the message.
void SetDescription(const std::string &description)
Set the description of the message.
void SetSessionId(uint64_t sessionId)
Set the session ID which this message is meant for.
void SetVirtReqID(uint16_t virtReqID)
Set virtual request ID for the message.
void SetIsMarshalled(bool isMarshalled)
Set the marshalling status.
bool IsMarshalled() const
Check if the message is marshalled.
uint16_t GetVirtReqID() const
Get virtual request ID for the message.
Message(Message &&msg)
Move Constructor.
Message & operator=(Message &&msg)
Move assignment operator.
Message(uint32_t size=0)
Constructor.
uint64_t GetSessionId() const
Get the session ID the message is meant for.