org.apache.synapse.endpoints.dispatch
Class SoapSessionDispatcher

java.lang.Object
  extended by org.apache.synapse.endpoints.dispatch.AbstractDispatcher
      extended by org.apache.synapse.endpoints.dispatch.SoapSessionDispatcher
All Implemented Interfaces:
Dispatcher

public class SoapSessionDispatcher
extends AbstractDispatcher


Field Summary
 
Fields inherited from class org.apache.synapse.endpoints.dispatch.AbstractDispatcher
log
 
Constructor Summary
SoapSessionDispatcher()
           
 
Method Summary
 SessionInformation getSession(MessageContext synCtx)
          Gives the endpoint based on the service group context ID of the request message.
 boolean isServerInitiatedSession()
          Soap session is initiated by the server.
 void removeSessionID(MessageContext syCtx)
          Remove the session Id - To clear out session information from current message
 void unbind(MessageContext synCtx)
          Removes the session belonging to the given message context.
 void updateSession(MessageContext synCtx)
          As this is a server initiated session, this method will only be called for response messages.
 
Methods inherited from class org.apache.synapse.endpoints.dispatch.AbstractDispatcher
extractSessionID, extractSessionID, getEndpoints, removeSessionID, removeSessionID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapSessionDispatcher

public SoapSessionDispatcher()
Method Detail

getSession

public SessionInformation getSession(MessageContext synCtx)
Gives the endpoint based on the service group context ID of the request message.

Parameters:
synCtx - Request MessageContext, possibly containing a service group context ID.
Returns:
Endpoint associated with the soap session, if current message is a soap session message and if current message is not the first message of the session. Returns null, if an Endpoint could not be found for the session.

updateSession

public void updateSession(MessageContext synCtx)
As this is a server initiated session, this method will only be called for response messages. It extracts the service group context ID (if available) from the message and updates the session (service group context ID) -> endpoint map.

Parameters:
synCtx - MessageContext of the response message.

unbind

public void unbind(MessageContext synCtx)
Description copied from interface: Dispatcher
Removes the session belonging to the given message context.

Parameters:
synCtx - MessageContext containing an session ID.

isServerInitiatedSession

public boolean isServerInitiatedSession()
Soap session is initiated by the server. So this method always returns true.

Returns:
true

removeSessionID

public void removeSessionID(MessageContext syCtx)
Description copied from interface: Dispatcher
Remove the session Id - To clear out session information from current message

Parameters:
syCtx - MessageContext containing an session ID


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.