|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.management.domain.handler.impl.InvocationResult
public class InvocationResult
Value object used for storing an invocation method result. This is done in order to accomplish multiple return value requirement. As we know, it's not possible to do that only with method signature and therefore this value object / struct is used.
Constructor Summary | |
---|---|
InvocationResult(long statusCode,
String statusText,
byte[] outputAndBidirectionalArgumentValues)
Builds an invocation result with the given status code and status text. |
Method Summary | |
---|---|
void |
createAndThrowException()
Simply throws a new MethodInvocationException. |
byte[] |
getOutputAndBidirectionalArgumentValues()
Returns the output and bidirectional argument values in raw format (byte []) |
Map<String,Object> |
getOutputSection()
Returns the output section of this invocation result. |
long |
getReturnCode()
Returns the return code of this invocation result. |
String |
getStatusText()
Contains the status text of this invocation result. |
boolean |
isException()
Checks if this result contains an error return code. |
void |
setOutputSection(Map<String,Object> outputSection)
Sets the output section (decoded) of this invocation result. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
InvocationResult(long statusCode, String statusText, byte[] outputAndBidirectionalArgumentValues)
statusCode
- the status code.statusText
- the status text.Method Detail |
---|
public boolean isException()
public void createAndThrowException() throws MethodInvocationException
MethodInvocationException
- always.public String toString()
toString
in class Object
public long getReturnCode()
public String getStatusText()
public byte[] getOutputAndBidirectionalArgumentValues()
public void setOutputSection(Map<String,Object> outputSection)
output
- a map containing outptu and bidirectional values (not in schema order).public Map<String,Object> getOutputSection()
outputSection
- the output section of this invocation result;
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |