diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2007-01-15 19:00:14 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2007-01-15 19:00:14 +0000 |
| commit | 4221f261d756db2d68376e84d6be374f1ddcb9e6 (patch) | |
| tree | 3a6f6458e84bd0c29acfbf2405b8a4f6f985ebd9 /gentools/templ.java/MethodBodyClass.tmpl | |
| parent | 87d97b5bcc5b7fe44cfc71ce28ccfeae1d9b2274 (diff) | |
| download | qpid-python-4221f261d756db2d68376e84d6be374f1ddcb9e6.tar.gz | |
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
Diffstat (limited to 'gentools/templ.java/MethodBodyClass.tmpl')
| -rw-r--r-- | gentools/templ.java/MethodBodyClass.tmpl | 7 |
1 files changed, 2 insertions, 5 deletions
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; } } |
