org.springframework.flex.core
Interface MessageInterceptor

All Known Subinterfaces:
ResourceHandlingMessageInterceptor
All Known Implementing Classes:
EndpointInterceptor, EndpointInterceptor, LoginMessageInterceptor, LoginMessageInterceptor, PerClientAuthenticationInterceptor, PerClientAuthenticationInterceptor

public interface MessageInterceptor

Strategy interface for applying custom processing logic to incoming and outgoing AMF Messages

Author:
Jeremy Grelle

Method Summary
 flex.messaging.messages.Message postProcess(MessageProcessingContext context, flex.messaging.messages.Message inputMessage, flex.messaging.messages.Message outputMessage)
          Hook for post-processing the outgoing AMF Message
 flex.messaging.messages.Message preProcess(MessageProcessingContext context, flex.messaging.messages.Message inputMessage)
          Hook for pre-processing the incoming AMF Message
 

Method Detail

postProcess

flex.messaging.messages.Message postProcess(MessageProcessingContext context,
                                            flex.messaging.messages.Message inputMessage,
                                            flex.messaging.messages.Message outputMessage)
Hook for post-processing the outgoing AMF Message

Parameters:
context - context for the current request
inputMessage - the incoming AMF message
outputMessage - the outgoing AMF message
Returns:
the AMF message to send in response

preProcess

flex.messaging.messages.Message preProcess(MessageProcessingContext context,
                                           flex.messaging.messages.Message inputMessage)
Hook for pre-processing the incoming AMF Message

Parameters:
context - context for the current request
inputMessage - the incoming AMF message
Returns:
the AMF message to process in the current request