org.openejb.client
Class JNDIResponse
java.lang.Object
org.openejb.client.JNDIResponse
- All Implemented Interfaces:
- Externalizable, Serializable, Response, ResponseCodes
public class JNDIResponse
- extends Object
- implements Response
- Since:
- 11/25/2001
- Author:
- David Blevins
- See Also:
- Serialized Form
Fields inherited from interface org.openejb.client.ResponseCodes |
AUTH_DENIED, AUTH_GRANTED, AUTH_REDIRECT, EJB_APP_EXCEPTION, EJB_ERROR, EJB_OK, EJB_OK_CREATE, EJB_OK_FOUND, EJB_OK_FOUND_COLLECTION, EJB_OK_FOUND_ENUMERATION, EJB_OK_NOT_FOUND, EJB_SYS_EXCEPTION, JNDI_CONTEXT, JNDI_EJBHOME, JNDI_ENUMERATION, JNDI_ERROR, JNDI_NAMING_EXCEPTION, JNDI_NOT_FOUND, JNDI_OK, JNDI_RUNTIME_EXCEPTION |
Method Summary |
int |
getResponseCode()
|
Object |
getResult()
|
void |
readExternal(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. |
void |
setResponseCode(int responseCode)
|
void |
setResult(Object result)
|
void |
writeExternal(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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDIResponse
public JNDIResponse()
JNDIResponse
public JNDIResponse(int code,
Object obj)
getResponseCode
public int getResponseCode()
getResult
public Object getResult()
setResponseCode
public void setResponseCode(int responseCode)
setResult
public void setResult(Object result)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
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 Externalizable
- Specified by:
readExternal
in interface Response
- Parameters:
in
- the stream to read data from in order to restore the object
- Throws:
IOException
- if I/O errors occur
ClassNotFoundException
- If the class for an object being
restored cannot be found.
writeExternal
public void writeExternal(ObjectOutput out)
throws 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 Externalizable
- Specified by:
writeExternal
in interface Response
- Parameters:
out
- the stream to write the object to
- Throws:
IOException
- Includes any I/O exceptions that may occur
Copyright © 1999-2012 OpenEJB. All Rights Reserved.