org.granite.seam21
Class Seam21Interceptor

java.lang.Object
  extended by org.granite.seam21.Seam21Interceptor
All Implemented Interfaces:
org.granite.messaging.amf.process.AMF3MessageInterceptor

public class Seam21Interceptor
extends Object
implements org.granite.messaging.amf.process.AMF3MessageInterceptor


Constructor Summary
Seam21Interceptor()
           
 
Method Summary
 void after(flex.messaging.messages.Message amfReqMessage, flex.messaging.messages.Message amfRespMessage)
           
 void before(flex.messaging.messages.Message amfReqMessage)
           
protected  void exportHeaders(org.granite.messaging.webapp.HttpServletRequestParamWrapper request, flex.messaging.messages.Message amf3RequestMessage)
          Reads the AMF request header and populate them in the request object
protected  void handleConversationPropagation()
           
protected  void importHeaders(flex.messaging.messages.Message amf3ResponseMessage)
          Update the AMF response message with the conversationId and other parameters.
protected  void initializeSeamContext(HttpServletRequest request)
          Initialize the Seam Context
protected  void processStatusMessages(flex.messaging.messages.Message amf3ResponseMessage)
          Process the Status messages and sets to the response header.
protected  void restoreConversationId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Seam21Interceptor

public Seam21Interceptor()
Method Detail

before

public void before(flex.messaging.messages.Message amfReqMessage)
Specified by:
before in interface org.granite.messaging.amf.process.AMF3MessageInterceptor

after

public void after(flex.messaging.messages.Message amfReqMessage,
                  flex.messaging.messages.Message amfRespMessage)
Specified by:
after in interface org.granite.messaging.amf.process.AMF3MessageInterceptor

exportHeaders

protected void exportHeaders(org.granite.messaging.webapp.HttpServletRequestParamWrapper request,
                             flex.messaging.messages.Message amf3RequestMessage)
Reads the AMF request header and populate them in the request object

Parameters:
request - - HttpServletRequestParamWrapper
amf3RequestMessage -

importHeaders

protected void importHeaders(flex.messaging.messages.Message amf3ResponseMessage)
Update the AMF response message with the conversationId and other parameters.

Parameters:
amf3ResponseMessage -

initializeSeamContext

protected void initializeSeamContext(HttpServletRequest request)
Initialize the Seam Context

Parameters:
request - - HttpServletRequest

processStatusMessages

protected void processStatusMessages(flex.messaging.messages.Message amf3ResponseMessage)
Process the Status messages and sets to the response header.

Parameters:
amf3ResponseMessage -

handleConversationPropagation

protected void handleConversationPropagation()

restoreConversationId

protected void restoreConversationId()