#include <MethodContext.h>
Collaboration diagram for qpid::framing::MethodContext:
Public Types | |
typedef boost::shared_ptr< AMQMethodBody > | BodyPtr |
Public Member Functions | |
MethodContext (ChannelAdapter *ch=0, BodyPtr method=BodyPtr()) | |
RequestId | getRequestId () const |
Return methodBody's request ID. | |
Public Attributes | |
ChannelAdapter * | channel |
Channel on which the method being processed arrived. | |
BodyPtr | methodBody |
Body of the method being processed. |
It provides the method being processed and the channel on which it arrived.
All Handler functions take a MethodContext as the last parameter.
RequestId qpid::framing::MethodContext::getRequestId | ( | ) | const |
Return methodBody's request ID.
It is an error to call this if methodBody is not a request.
Channel on which the method being processed arrived.
0 if the method was constructed by the caller rather than received from a channel.
Body of the method being processed.
It's useful for passing around instead of unpacking all its parameters. It's also provides the request ID when constructing a response.