com.adobe.flashaccess.sdk.protocol
Class AbstractMessageHandler

java.lang.Object
  extended by com.adobe.flashaccess.sdk.protocol.AbstractHandler
      extended by com.adobe.flashaccess.sdk.protocol.AbstractMessageHandler
All Implemented Interfaces:
HandlerInterface
Direct Known Subclasses:
MessageHandlerBase

public abstract class AbstractMessageHandler
extends AbstractHandler

The base class for request/response handlers which deal with a single request/response.


Method Summary
 void close()
          Sends the signed and encrypted response (success or error) to the client.
abstract  AbstractRequestMessage getRequest()
          Retrieves the request message sent by the client.
 
Methods inherited from class com.adobe.flashaccess.sdk.protocol.AbstractHandler
parseRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRequest

public abstract AbstractRequestMessage getRequest()
Retrieves the request message sent by the client.

Returns:
The request message.

close

public void close()
           throws java.io.IOException
Sends the signed and encrypted response (success or error) to the client. In some cases, error data will not be encrypted (for example, the request could not be decrypted). close() must be the last method called for this object; it is recommended this be part of a finally block to ensure a response is always sent to the client.

Specified by:
close in interface HandlerInterface
Overrides:
close in class AbstractHandler
Throws:
java.lang.IllegalStateException - if neither the response or error data has been set, or if close() has already been called.
java.io.IOException


[an error occurred while processing this directive] [an error occurred while processing this directive]