org.nakedobjects.remoting.exchange
Class RequestAbstract

java.lang.Object
  extended by org.nakedobjects.remoting.exchange.RequestAbstract
All Implemented Interfaces:
Encodable, Request
Direct Known Subclasses:
AuthorizationRequestAbstract, ClearAssociationRequest, ClearValueRequest, CloseSessionRequest, ExecuteClientActionRequest, ExecuteServerActionRequest, FindInstancesRequest, GetObjectRequest, GetPropertiesRequest, HasInstancesRequest, OidForServiceRequest, OpenSessionRequest, ResolveFieldRequest, ResolveObjectRequest, SetAssociationRequest, SetValueRequest

public abstract class RequestAbstract
extends java.lang.Object
implements Request


Field Summary
protected  java.lang.Object response
           
protected  AuthenticationSession session
           
 
Constructor Summary
RequestAbstract(AuthenticationSession session)
           
RequestAbstract(DataInputExtended input)
           
 
Method Summary
 void encode(DataOutputExtended output)
           
 int getId()
          Unique identifier for the request.
 java.lang.Object getResponse()
           
 AuthenticationSession getSession()
           
 void setResponse(java.lang.Object response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.remoting.exchange.Request
execute
 

Field Detail

response

protected transient java.lang.Object response

session

protected final AuthenticationSession session
Constructor Detail

RequestAbstract

public RequestAbstract(AuthenticationSession session)

RequestAbstract

public RequestAbstract(DataInputExtended input)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

encode

public void encode(DataOutputExtended output)
            throws java.io.IOException
Specified by:
encode in interface Encodable
Throws:
java.io.IOException

setResponse

public final void setResponse(java.lang.Object response)
Specified by:
setResponse in interface Request

getResponse

public java.lang.Object getResponse()
Specified by:
getResponse in interface Request

getSession

public AuthenticationSession getSession()
Specified by:
getSession in interface Request

getId

public int getId()
Description copied from interface: Request
Unique identifier for the request.

REVIEW: rather than using a simple int, wouldn't a UUID be preferable?

Specified by:
getId in interface Request


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.