public class EJBRequest extends Object implements ClusterableRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
EJBRequest.Body |
| Modifier and Type | Field and Description |
|---|---|
static int |
ENTITY_BM_PERSISTENCE |
static int |
ENTITY_CM_PERSISTENCE |
static int |
SESSION_BEAN_STATEFUL |
static int |
SESSION_BEAN_STATELESS |
| Constructor and Description |
|---|
EJBRequest() |
EJBRequest(RequestMethodCode requestMethod,
EJBMetaDataImpl ejb,
Method method,
Object[] args,
Object primaryKey,
EJBDSerializer serializer) |
public static final int SESSION_BEAN_STATELESS
public static final int SESSION_BEAN_STATEFUL
public static final int ENTITY_BM_PERSISTENCE
public static final int ENTITY_CM_PERSISTENCE
public EJBRequest()
public EJBRequest(RequestMethodCode requestMethod, EJBMetaDataImpl ejb, Method method, Object[] args, Object primaryKey, EJBDSerializer serializer)
public void setMetaData(ProtocolMetaData metaData)
RequestsetMetaData in interface RequestmetaData - ProtocolMetaDatapublic EJBMetaDataImpl getEjbMetaData()
public Class getInterfaceClass()
public Method getMethodInstance()
public String getMethodName()
public Object[] getMethodParameters()
public Class[] getMethodParamTypes()
public Object getPrimaryKey()
public void setMethodInstance(Method methodInstance)
public void setMethodParameters(Object[] methodParameters)
public void setPrimaryKey(Object primaryKey)
public EJBRequest.Body getBody()
public void setBody(EJBRequest.Body body)
public byte getVersion()
public void setSerializer(EJBDSerializer serializer)
public RequestType getRequestType()
getRequestType in interface Requestpublic RequestMethodCode getRequestMethod()
public Object getClientIdentity()
public String getDeploymentId()
public int getDeploymentCode()
public void setRequestMethod(RequestMethodCode requestMethod)
public void setClientIdentity(Object clientIdentity)
public void setDeploymentId(String deploymentId)
public void setDeploymentCode(int deploymentCode)
public void setServerHash(int serverHash)
setServerHash in interface ClusterableRequestpublic int getServerHash()
getServerHash in interface ClusterableRequestpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
metaData version
When the Request externalizes itself, it will reset
the appropriate values so that this instance can be used again.
There will be one request instance for each handlerreadExternal in interface ExternalizablereadExternal in interface RequestIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
EJBRequest.Body.writeExternal(java.io.ObjectOutput)writeExternal in interface ExternalizablewriteExternal in interface Requestout - ObjectOutputIOExceptionCopyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.