From 4221f261d756db2d68376e84d6be374f1ddcb9e6 Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Mon, 15 Jan 2007 19:00:14 +0000 Subject: Changed static method AMQMethodBody.createAMQFrame() to createMessageBody() for all generated classes so that it can be used with the new Request and Response handlers. (Don't forget to update the gentools dir.) Created new methods AMQMinaProtocolSession.writeRequest() and writeResponse() as new entry points for Request and Response framing. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496439 13f79535-47bb-0310-9956-ffa450edef68 --- gentools/templ.java/MethodBodyClass.tmpl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gentools/templ.java/MethodBodyClass.tmpl') diff --git a/gentools/templ.java/MethodBodyClass.tmpl b/gentools/templ.java/MethodBodyClass.tmpl index 83973bc498..e44a26c84f 100644 --- a/gentools/templ.java/MethodBodyClass.tmpl +++ b/gentools/templ.java/MethodBodyClass.tmpl @@ -84,16 +84,13 @@ ${METHOD_ID_INIT} return buf.toString(); } - public static AMQFrame createAMQFrame(int _channelId, byte major, byte minor + public static ${CLASS}${METHOD}Body createMethodBody(byte major, byte minor %{FLIST} ${mb_field_parameter_list} ) { ${CLASS}${METHOD}Body bodyFrame = new ${CLASS}${METHOD}Body(major, minor); %{FLIST} ${mb_field_body_initialize} - AMQFrame frame = new AMQFrame(); - frame.channel = _channelId; - frame.bodyFrame = bodyFrame; - return frame; + return bodyFrame; } } -- cgit v1.2.1