summaryrefslogtreecommitdiff
path: root/cpp/lib/common/framing/MethodContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/common/framing/MethodContext.h')
-rw-r--r--cpp/lib/common/framing/MethodContext.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/lib/common/framing/MethodContext.h b/cpp/lib/common/framing/MethodContext.h
index afb499023d..3493924bf6 100644
--- a/cpp/lib/common/framing/MethodContext.h
+++ b/cpp/lib/common/framing/MethodContext.h
@@ -24,8 +24,6 @@
#include "OutputHandler.h"
#include "ProtocolVersion.h"
-#include <boost/shared_ptr.hpp>
-
namespace qpid {
namespace framing {
@@ -61,6 +59,12 @@ struct MethodContext
* It's also provides the request ID when constructing a response.
*/
BodyPtr methodBody;
+
+ /**
+ * Return methodBody's request ID.
+ * It is an error to call this if methodBody is not a request.
+ */
+ RequestId getRequestId() const;
};
// FIXME aconway 2007-02-01: Method context only required on Handler