javax.rad.server
Class ResultObject

java.lang.Object
  extended by javax.rad.server.ResultObject

public final class ResultObject
extends Object

The ResultObject encapsulates the return type and value of a remote call.


Constructor Summary
ResultObject(byte pType, Object pObject)
          Creates a new instance of ResultObject.
ResultObject(byte pType, Object pObject, Object pCallBackId)
          Creates a new instance of ResultObject for an asynchronous call.
 
Method Summary
 Object getCallBackId()
          Gets the callback identifier from an asynchronous method call.
 Object getObject()
          Gets the result of a remote method call.
 byte getType()
          Gets the type of a remote method call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultObject

public ResultObject(byte pType,
                    Object pObject)
Creates a new instance of ResultObject.

Parameters:
pType - result type
pObject - result object

ResultObject

public ResultObject(byte pType,
                    Object pObject,
                    Object pCallBackId)
Creates a new instance of ResultObject for an asynchronous call.

Parameters:
pType - result type
pObject - result object
pCallBackId - callback identifier for the result
Method Detail

getType

public final byte getType()
Gets the type of a remote method call.

Returns:
one of the following IConnection.TYPE_CALL_RESULT, IConnection.TYPE_CALL_ERROR, IConnection.TYPE_CALLBACK_RESULT, IConnection.TYPE_CALLBACK_ERROR

getObject

public final Object getObject()
Gets the result of a remote method call.

Returns:
any object or null

getCallBackId

public final Object getCallBackId()
Gets the callback identifier from an asynchronous method call.

Returns:
callback identifier


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.