com.threerings.presents.net
Class ObjectResponse<T extends DObject>

java.lang.Object
  extended by com.threerings.io.SimpleStreamableObject
      extended by com.threerings.presents.net.Message
          extended by com.threerings.presents.net.DownstreamMessage
              extended by com.threerings.presents.net.ObjectResponse<T>
Type Parameters:
T - the type of object delivered by the response.
All Implemented Interfaces:
Streamable

public class ObjectResponse<T extends DObject>
extends DownstreamMessage

Contains a distributed object to which the client has subscribed.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
protected  T _dobj
          The object which is associated with this response.
 
Fields inherited from class com.threerings.presents.net.DownstreamMessage
messageId
 
Fields inherited from class com.threerings.presents.net.Message
received
 
Constructor Summary
ObjectResponse()
          Zero argument constructor used when unserializing an instance.
ObjectResponse(T dobj)
          Constructs an object response with the supplied distributed object.
 
Method Summary
 T getObject()
           
 String toString()
           
 
Methods inherited from class com.threerings.presents.net.Message
getTransport, noteActualTransport, setTransport
 
Methods inherited from class com.threerings.io.SimpleStreamableObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_dobj

protected T extends DObject _dobj
The object which is associated with this response.

Constructor Detail

ObjectResponse

public ObjectResponse()
Zero argument constructor used when unserializing an instance.


ObjectResponse

public ObjectResponse(T dobj)
Constructs an object response with the supplied distributed object.

Method Detail

getObject

public T getObject()

toString

public String toString()
Overrides:
toString in class DownstreamMessage