public class EJBResponse extends 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() |
Object |
getResult() |
ServerMetaData |
getServer() |
void |
readExternal(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,
Object result) |
void |
setServer(ServerMetaData server) |
void |
start(EJBResponse.Time time) |
void |
stop(EJBResponse.Time time) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static final byte VERSION
public void setMetaData(ProtocolMetaData metaData)
ResponsesetMetaData in interface ResponsemetaData - ProtocolMetaDatapublic EJBRequest getRequest()
public void setRequest(EJBRequest request)
public int getResponseCode()
public Object getResult()
public void setResponse(byte version,
int code,
Object result)
public void setServer(ServerMetaData server)
setServer in interface ClusterableResponsepublic ServerMetaData getServer()
public void start(EJBResponse.Time time)
public void stop(EJBResponse.Time time)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in interface ResponseIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in interface ResponseIOExceptionCopyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.