org.objectweb.easybeans.rpc.api
Interface EJBResponse

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
JEJBResponse

public interface EJBResponse
extends java.io.Serializable

Response received from the server.

Author:
Florent Benoit

Method Summary
 java.lang.Long getBeanId()
           
 RPCException getRPCException()
           
 java.lang.Object getValue()
           
 void setBeanId(java.lang.Long beanId)
          Sets the bean Id.
 void setRPCException(RPCException rpcException)
          Sets the RPC Exception (if any).
 void setValue(java.lang.Object o)
          Sets the value of the response.
 

Method Detail

getValue

java.lang.Object getValue()
Returns:
the value returned by the server wrapped in the response.

setValue

void setValue(java.lang.Object o)
Sets the value of the response.

Parameters:
o - the value.

getBeanId

java.lang.Long getBeanId()
Returns:
id of the bean.

setBeanId

void setBeanId(java.lang.Long beanId)
Sets the bean Id.

Parameters:
beanId - the id of the bean.

getRPCException

RPCException getRPCException()
Returns:
RPC exception of the invocation (if any).

setRPCException

void setRPCException(RPCException rpcException)
Sets the RPC Exception (if any).

Parameters:
rpcException - the given exception