org.apache.openejb.client
Class EJBResponse

java.lang.Object
  extended by org.apache.openejb.client.EJBResponse
All Implemented Interfaces:
Externalizable, Serializable, ClusterableResponse, Response

public class EJBResponse
extends Object
implements ClusterableResponse

See Also:
Serialized Form

Nested Class Summary
static class EJBResponse.Time
           
 
Field Summary
static byte VERSION
          Version provides the protocol hint for backwards compatibility: 1.
 
Constructor Summary
EJBResponse()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION

public static final byte VERSION
Version provides the protocol hint for backwards compatibility: 1. Initial 2. Append times.

See Also:
Constant Field Values
Constructor Detail

EJBResponse

public EJBResponse()
Method Detail

setMetaData

public void setMetaData(ProtocolMetaData metaData)
Description copied from interface: Response
Set the protocol metadata that can be used for version checking

Specified by:
setMetaData in interface Response
Parameters:
metaData - ProtocolMetaData

getRequest

public EJBRequest getRequest()

setRequest

public void setRequest(EJBRequest request)

getResponseCode

public int getResponseCode()

getResult

public Object getResult()

setResponse

public void setResponse(byte version,
                        int code,
                        Object result)

setServer

public void setServer(ServerMetaData server)
Specified by:
setServer in interface ClusterableResponse

getServer

public ServerMetaData getServer()

toString

public String toString()
Overrides:
toString in class Object

start

public void start(EJBResponse.Time time)

stop

public void stop(EJBResponse.Time time)

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Specified by:
readExternal in interface Response
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Specified by:
writeExternal in interface Response
Throws:
IOException


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.