com.adobe.flashaccess.sdk.protocol
Class AbstractBatchHandler

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

public abstract class AbstractBatchHandler
extends AbstractHandler

Base class for request/response handlers which deal with multiple requests/responses sent in a batch.


Method Summary
 void close()
          Sends the signed and encrypted response (success or error) to the client.
abstract  java.util.List getRequests()
          Retrieves the request messages 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

getRequests

public abstract java.util.List getRequests()
Retrieves the request messages sent by the client.

Returns:
List<? extends AbstractRequestMessage> containing the request messages sent by the client.

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]