org.openejb.client
Class EJBRequest

java.lang.Object
  extended by org.openejb.client.EJBRequest
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Request, RequestMethods

public class EJBRequest
extends java.lang.Object
implements Request

Since:
11/25/2001
Author:
David Blevins
See Also:
Serialized Form

Field Summary
static int ENTITY_BM_PERSISTENCE
           
static int ENTITY_CM_PERSISTENCE
           
static int SESSION_BEAN_STATEFUL
           
static int SESSION_BEAN_STATELESS
           
 
Fields inherited from interface org.openejb.client.RequestMethods
AUTH_REQUEST, EJB_HOME_CREATE, EJB_HOME_FIND, EJB_HOME_GET_EJB_META_DATA, EJB_HOME_GET_HOME_HANDLE, EJB_HOME_REMOVE_BY_HANDLE, EJB_HOME_REMOVE_BY_PKEY, EJB_OBJECT_BUSINESS_METHOD, EJB_OBJECT_GET_EJB_HOME, EJB_OBJECT_GET_HANDLE, EJB_OBJECT_GET_PRIMARY_KEY, EJB_OBJECT_IS_IDENTICAL, EJB_OBJECT_REMOVE, EJB_REQUEST, JNDI_LIST, JNDI_LIST_BINDINGS, JNDI_LOOKUP, JNDI_REQUEST, STOP_REQUEST_quit, STOP_REQUEST_Quit, STOP_REQUEST_stop, STOP_REQUEST_Stop
 
Constructor Summary
EJBRequest()
           
EJBRequest(int requestMethod)
           
 
Method Summary
 java.lang.Object getClientIdentity()
           
 int getDeploymentCode()
           
 java.lang.String getDeploymentId()
           
 java.lang.Class getMethodClass()
           
 java.lang.reflect.Method getMethodInstance()
           
 java.lang.String getMethodName()
           
 java.lang.Object[] getMethodParameters()
           
 java.lang.Class[] getMethodParamTypes()
           
 java.lang.Object getPrimaryKey()
           
 int getRequestMethod()
           
 byte getRequestType()
           
 void readExternal(java.io.ObjectInput in)
          The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.
protected  void readMethodParameters(java.io.ObjectInput in)
           
 void setClientIdentity(java.lang.Object clientIdentity)
           
 void setDeploymentCode(int deploymentCode)
           
 void setDeploymentId(java.lang.String deploymentId)
           
 void setMethodInstance(java.lang.reflect.Method methodInstance)
           
 void setMethodParameters(java.lang.Object[] methodParameters)
           
 void setPrimaryKey(java.lang.Object primaryKey)
           
 void setRequestMethod(int requestMethod)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
          The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
protected  void writeMethodParameters(java.io.ObjectOutput out, java.lang.Class[] types, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

EJBRequest

public EJBRequest()

EJBRequest

public EJBRequest(int requestMethod)
Method Detail

getRequestType

public byte getRequestType()
Specified by:
getRequestType in interface Request

getRequestMethod

public int getRequestMethod()

getClientIdentity

public java.lang.Object getClientIdentity()

getMethodInstance

public java.lang.reflect.Method getMethodInstance()

getMethodParameters

public java.lang.Object[] getMethodParameters()

getDeploymentId

public java.lang.String getDeploymentId()

getDeploymentCode

public int getDeploymentCode()

getPrimaryKey

public java.lang.Object getPrimaryKey()

getMethodClass

public java.lang.Class getMethodClass()

getMethodName

public java.lang.String getMethodName()

getMethodParamTypes

public java.lang.Class[] getMethodParamTypes()

setRequestMethod

public void setRequestMethod(int requestMethod)

setClientIdentity

public void setClientIdentity(java.lang.Object clientIdentity)

setMethodInstance

public void setMethodInstance(java.lang.reflect.Method methodInstance)

setMethodParameters

public void setMethodParameters(java.lang.Object[] methodParameters)

setDeploymentId

public void setDeploymentId(java.lang.String deploymentId)

setDeploymentCode

public void setDeploymentCode(int deploymentCode)

setPrimaryKey

public void setPrimaryKey(java.lang.Object primaryKey)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.

Specified by:
readExternal in interface java.io.Externalizable
Specified by:
readExternal in interface Request
Parameters:
in - the stream to read data from in order to restore the object
Throws:
java.io.IOException - if I/O errors occur
java.lang.ClassNotFoundException - If the class for an object being restored cannot be found.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Specified by:
writeExternal in interface java.io.Externalizable
Specified by:
writeExternal in interface Request
Parameters:
out - the stream to write the object to
Throws:
java.io.IOException - Includes any I/O exceptions that may occur

writeMethodParameters

protected void writeMethodParameters(java.io.ObjectOutput out,
                                     java.lang.Class[] types,
                                     java.lang.Object[] args)
                              throws java.io.IOException
Throws:
java.io.IOException

readMethodParameters

protected void readMethodParameters(java.io.ObjectInput in)
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.