kaos.core.util
Class MethodCallResultMsg
java.lang.Object
kaos.core.util.Msg
kaos.core.util.MethodCallMsg
kaos.core.util.MethodCallResultMsg
- All Implemented Interfaces:
- java.io.Serializable, org.xml.sax.ErrorHandler
public class MethodCallResultMsg
- extends MethodCallMsg
- See Also:
- Serialized Form
Constructor Summary |
MethodCallResultMsg(java.lang.String sequenceId,
java.lang.Exception xcp)
Creates a reply msg to a MethodCallRequestMsg indicating the
requested method generated an exception |
MethodCallResultMsg(java.lang.String sequenceId,
java.lang.Object result)
Creates a reply msg to a MethodCallRequestMsg indicating the
requested method was called successfully |
Methods inherited from class kaos.core.util.Msg |
addSubMsg, addSubMsg, addSymbol, addSymbol, addSymbol, addSymbol, addSymbol, addSymbol, clone, createFromFile, error, fatalError, getElementsNamed, getFirstChildSkip, getNamedString, getNamedString, getNamedVector, getNextSkip, getNodeAttributes, getParentSkip, getPreviousSkip, getRootNode, getSubMsg, getSubMsg, getSymbol, getSymbol, getVerbosity, main, removeSymbol, setLogger, setVerbosity, showMsgInfo, showMsgInfo, toString, traverseDOMBranch, traverseRoot, warning |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MethodCallResultMsg
public MethodCallResultMsg(java.lang.String sequenceId,
java.lang.Object result)
- Creates a reply msg to a MethodCallRequestMsg indicating the
requested method was called successfully
- Parameters:
sequenceId
- Unique identifier to identify the source msg this reply
is in response toresult
- the return value of the method called in the originating msg
null is OK
must be serializable!
$Revision: 1.2 $
MethodCallResultMsg
public MethodCallResultMsg(java.lang.String sequenceId,
java.lang.Exception xcp)
- Creates a reply msg to a MethodCallRequestMsg indicating the
requested method generated an exception
- Parameters:
sequenceId
- Unique identifier to identify the source msg this reply
is in response toexception
- The exception that occurred
getException
public java.lang.Exception getException()
getResult
public java.lang.Object getResult()