public interface ResourceHandlingMessageInterceptor extends MessageInterceptor
MessageInterceptor interface that adds an additional callback to be invoked after standard
message processing is completed. This callback will be invoked even when an Exception is thrown by the
current request's Endpoint. This gives the interceptor a chance to clean up any resources that may have been
created for the current request.| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(MessageProcessingContext context,
flex.messaging.messages.Message inputMessage,
flex.messaging.messages.Message outputMessage,
Exception ex)
Callback to be invoked when message processing is complete, giving the interceptor a chance to clean up resources.
|
postProcess, preProcessvoid afterCompletion(MessageProcessingContext context, flex.messaging.messages.Message inputMessage, flex.messaging.messages.Message outputMessage, Exception ex)
context - - the MessageProcessingContext for the current requestinputMessage - - the incoming AMF messageoutputMessage - - the outgoing AMF message, null in the case of an exception thrown by the Endpointex - - exception thrown by the Endpoint, null in the case of successful processingCopyright © 2014. All rights reserved.