javax.rad.server.event
Class CallResultEvent

java.lang.Object
  extended by javax.rad.server.event.SessionEvent
      extended by javax.rad.server.event.CallEvent
          extended by javax.rad.server.event.CallResultEvent

public class CallResultEvent
extends CallEvent

The CallResultEvent serves the result from a method call. The result can be any object (also an exception) or a call exception.


Constructor Summary
CallResultEvent(ISession pSession, ISession pSource, java.lang.String pObjectName, java.lang.String pMethodName, java.lang.Object[] pParameter, boolean pIsCallBack, java.lang.Object pObject, java.lang.Throwable pThrowable)
          Creates a new instance of CallResultEvent.
 
Method Summary
 java.lang.Object getObject()
          Gets the return value from the method call.
 
Methods inherited from class javax.rad.server.event.CallEvent
getMethodName, getObjectName, getParameter, isCallBack
 
Methods inherited from class javax.rad.server.event.SessionEvent
getCreationTime, getSession, getSourceSession, hasError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallResultEvent

public CallResultEvent(ISession pSession,
                       ISession pSource,
                       java.lang.String pObjectName,
                       java.lang.String pMethodName,
                       java.lang.Object[] pParameter,
                       boolean pIsCallBack,
                       java.lang.Object pObject,
                       java.lang.Throwable pThrowable)
Creates a new instance of CallResultEvent.

Parameters:
pSession - the session
pSource - the source session
pObjectName - the object name for the call
pMethodName - the method name for the call
pParameter - the parameter list
pIsCallBack - whether the call is a callback call
pObject - result value from the method call. If the method call returned a result, the exception is undefined!
pThrowable - exception from the the remote method call. If the method call returned an error, the result is undefined!
Method Detail

getObject

public java.lang.Object getObject()
                           throws java.lang.Throwable
Gets the return value from the method call.

Returns:
the return value from the call
Throws:
java.lang.Throwable - if the method call throwed an error


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.