org.nakedobjects.remoting.exchange
Class ClearAssociationRequest

java.lang.Object
  extended by org.nakedobjects.remoting.exchange.RequestAbstract
      extended by org.nakedobjects.remoting.exchange.ClearAssociationRequest
All Implemented Interfaces:
Encodable, Request

public class ClearAssociationRequest
extends RequestAbstract

REVIEW: should we split? the OTMA will need to specify the associate to remove, but the OTOA should not need to provide the associate to clear.


Field Summary
 
Fields inherited from class org.nakedobjects.remoting.exchange.RequestAbstract
response, session
 
Constructor Summary
ClearAssociationRequest(AuthenticationSession session, java.lang.String fieldIdentifier, IdentityData target, IdentityData associate)
           
ClearAssociationRequest(DataInputExtended input)
           
 
Method Summary
 void encode(DataOutputExtended output)
           
 void execute(ServerFacade serverFacade)
          Sets a response of a ClearAssociationResponse.
 IdentityData getAssociate()
           
 java.lang.String getFieldIdentifier()
           
 ClearAssociationResponse getResponse()
          Downcasts.
 IdentityData getTarget()
           
 
Methods inherited from class org.nakedobjects.remoting.exchange.RequestAbstract
getId, getSession, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearAssociationRequest

public ClearAssociationRequest(AuthenticationSession session,
                               java.lang.String fieldIdentifier,
                               IdentityData target,
                               IdentityData associate)

ClearAssociationRequest

public ClearAssociationRequest(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
Overrides:
encode in class RequestAbstract
Throws:
java.io.IOException

getFieldIdentifier

public java.lang.String getFieldIdentifier()

getTarget

public IdentityData getTarget()

getAssociate

public IdentityData getAssociate()

execute

public void execute(ServerFacade serverFacade)
Sets a response of a ClearAssociationResponse.


getResponse

public ClearAssociationResponse getResponse()
Downcasts.

Specified by:
getResponse in interface Request
Overrides:
getResponse in class RequestAbstract


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