org.apache.openejb.client
Class EJBRequest
java.lang.Object
org.apache.openejb.client.EJBRequest
- All Implemented Interfaces:
- Externalizable, Serializable, ClusterableRequest, Request
public class EJBRequest
- extends Object
- implements ClusterableRequest
- See Also:
- Serialized Form
SESSION_BEAN_STATELESS
public static final int SESSION_BEAN_STATELESS
- See Also:
- Constant Field Values
SESSION_BEAN_STATEFUL
public static final int SESSION_BEAN_STATEFUL
- See Also:
- Constant Field Values
ENTITY_BM_PERSISTENCE
public static final int ENTITY_BM_PERSISTENCE
- See Also:
- Constant Field Values
ENTITY_CM_PERSISTENCE
public static final int ENTITY_CM_PERSISTENCE
- See Also:
- Constant Field Values
EJBRequest
public EJBRequest()
EJBRequest
public EJBRequest(RequestMethodCode requestMethod,
EJBMetaDataImpl ejb,
Method method,
Object[] args,
Object primaryKey,
EJBDSerializer serializer)
setMetaData
public void setMetaData(ProtocolMetaData metaData)
- Description copied from interface:
Request
- Set the protocol metadata that can be used for versioned requests
- Specified by:
setMetaData in interface Request
- Parameters:
metaData - ProtocolMetaData
getEjbMetaData
public EJBMetaDataImpl getEjbMetaData()
getInterfaceClass
public Class getInterfaceClass()
getMethodInstance
public Method getMethodInstance()
getMethodName
public String getMethodName()
getMethodParameters
public Object[] getMethodParameters()
getMethodParamTypes
public Class[] getMethodParamTypes()
getPrimaryKey
public Object getPrimaryKey()
setMethodInstance
public void setMethodInstance(Method methodInstance)
setMethodParameters
public void setMethodParameters(Object[] methodParameters)
setPrimaryKey
public void setPrimaryKey(Object primaryKey)
getBody
public EJBRequest.Body getBody()
setBody
public void setBody(EJBRequest.Body body)
getVersion
public byte getVersion()
setSerializer
public void setSerializer(EJBDSerializer serializer)
getRequestType
public RequestType getRequestType()
- Specified by:
getRequestType in interface Request
getRequestMethod
public RequestMethodCode getRequestMethod()
getClientIdentity
public Object getClientIdentity()
getDeploymentId
public String getDeploymentId()
getDeploymentCode
public int getDeploymentCode()
setRequestMethod
public void setRequestMethod(RequestMethodCode requestMethod)
setClientIdentity
public void setClientIdentity(Object clientIdentity)
setDeploymentId
public void setDeploymentId(String deploymentId)
setDeploymentCode
public void setDeploymentCode(int deploymentCode)
setServerHash
public void setServerHash(int serverHash)
- Specified by:
setServerHash in interface ClusterableRequest
getServerHash
public int getServerHash()
- Specified by:
getServerHash in interface ClusterableRequest
toString
public String toString()
- Overrides:
toString in class Object
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Changes to this method must observe the optional
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 handler
- Specified by:
readExternal in interface Externalizable- Specified by:
readExternal in interface Request
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Write to server.
WARNING: To maintain backwards compatibility never change the order or insert new writes, always append to
EJBRequest.Body.writeExternal(java.io.ObjectOutput)
- Specified by:
writeExternal in interface Externalizable- Specified by:
writeExternal in interface Request
- Parameters:
out - ObjectOutput
- Throws:
IOException
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.