From 08dfca659546aac8184383259fb9bec583a88927 Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Fri, 9 Apr 2010 14:16:42 +0000 Subject: QPID-2379: add ability to respond to method requests with non-zero status codes, use to signal unimplemented methods. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@932430 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/broker/src/xsl/qmf.xsl | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'qpid/java/broker/src/xsl') diff --git a/qpid/java/broker/src/xsl/qmf.xsl b/qpid/java/broker/src/xsl/qmf.xsl index b7690d233a..3a7e10dac8 100644 --- a/qpid/java/broker/src/xsl/qmf.xsl +++ b/qpid/java/broker/src/xsl/qmf.xsl @@ -540,6 +540,16 @@ public class extends QMFPackage _requestCmd = cmd; } + public ResponseCommand createResponseCommand(CompletionCode status) + { + return new ResponseCommand(_requestCmd, status, null); + } + + public ResponseCommand createResponseCommand(CompletionCode status, String msg) + { + return new ResponseCommand(_requestCmd, status, msg); + } + public ResponseCommand createResponseCommand( yesO ) { return new ResponseCommand(_requestCmd, O); @@ -551,17 +561,29 @@ public class extends QMFPackage private ResponseCommand(QMFMethodRequestCommand cmd, yesO) { - super(cmd); + super(cmd, CompletionCode.OK, "OK"); } + private ResponseCommand(QMFMethodRequestCommand cmd, CompletionCode status, String msg) + { + super(cmd, status, msg); + + + } + @Override public void encode(final BBEncoder encoder) { super.encode(encoder); - + + if(getStatus().equals(CompletionCode.OK)) + { + + } + } } @@ -600,6 +622,10 @@ public class extends QMFPackage _ = ; + + _ = null; + + _Class, _EventClass, -- cgit v1.2.1