org.ow2.easybeans.rpc.api
Interface EJBResponse

All Superinterfaces:
Serializable

public interface EJBResponse
extends Serializable

Response received from the server.

Author:
Florent Benoit

Method Summary
 Long getBeanId()
           
 RPCException getRPCException()
           
 Object getValue()
           
 boolean isRemoved()
           
 void setBeanId(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(Object o)
          Sets the value of the response.
 

Method Detail

getValue

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

setValue

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

Parameters:
o - the value.

getBeanId

Long getBeanId()
Returns:
id of the bean.

setBeanId

void setBeanId(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


Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.