kaos.core.util
Class MethodCallResultMsg

java.lang.Object
  extended by kaos.core.util.Msg
      extended by kaos.core.util.MethodCallMsg
          extended by 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
 
Method Summary
 java.lang.Exception getException()
           
 java.lang.Object getResult()
           
 
Methods inherited from class kaos.core.util.MethodCallMsg
getSequenceId
 
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
 

Constructor Detail

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 to
result - 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 to
exception - The exception that occurred
Method Detail

getException

public java.lang.Exception getException()

getResult

public java.lang.Object getResult()