com.adobe.flashaccess.sdk.protocol
Class AbstractMessageHandler
java.lang.Object
com.adobe.flashaccess.sdk.protocol.AbstractHandler
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.
getRequest
public abstract AbstractRequestMessage getRequest ()
Retrieves the request message sent by the client.
Returns: The request message.
close
public void close ()
throws 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:
IllegalStateException
- if neither the response or error data has been set, or if
close()
has already been called.
IOException
[an error occurred while processing this directive] [an error occurred while processing this directive]