public class EJBResponse extends java.lang.Object implements ClusterableResponse
Modifier and Type | Class and Description |
---|---|
static class |
EJBResponse.Time |
Modifier and Type | Field and Description |
---|---|
static byte |
VERSION
Version provides the protocol hint for backwards compatibility:
1.
|
Constructor and Description |
---|
EJBResponse() |
Modifier and Type | Method and Description |
---|---|
EJBRequest |
getRequest() |
int |
getResponseCode() |
java.lang.Object |
getResult() |
ServerMetaData |
getServer() |
void |
readExternal(java.io.ObjectInput in) |
void |
setMetaData(ProtocolMetaData metaData)
Set the protocol metadata that can be used for version checking
|
void |
setRequest(EJBRequest request) |
void |
setResponse(byte version,
int code,
java.lang.Object result) |
void |
setServer(ServerMetaData server) |
void |
start(EJBResponse.Time time) |
void |
stop(EJBResponse.Time time) |
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out) |
public static final byte VERSION
public void setMetaData(ProtocolMetaData metaData)
Response
setMetaData
in interface Response
metaData
- ProtocolMetaDatapublic EJBRequest getRequest()
public void setRequest(EJBRequest request)
public int getResponseCode()
public java.lang.Object getResult()
public void setResponse(byte version, int code, java.lang.Object result)
public void setServer(ServerMetaData server)
setServer
in interface ClusterableResponse
public ServerMetaData getServer()
public java.lang.String toString()
toString
in class java.lang.Object
public void start(EJBResponse.Time time)
public void stop(EJBResponse.Time time)
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in interface Response
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in interface Response
java.io.IOException