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()
           
 boolean isRemoved()
           
 void setBeanId(java.lang.Long beanId)
          Sets the bean Id.
 void setRemoved(boolean removed)
          Sets the removed flag.
 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.

isRemoved

boolean isRemoved()
Returns:
true if the bean has been removed

setRemoved

void setRemoved(boolean removed)
Sets the removed flag.

Parameters:
removed - if bean has been removed.

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