org.apache.synapse.endpoints.dispatch
Class SoapSessionDispatcher
java.lang.Object
org.apache.synapse.endpoints.dispatch.AbstractDispatcher
org.apache.synapse.endpoints.dispatch.SoapSessionDispatcher
- All Implemented Interfaces:
- Dispatcher
public class SoapSessionDispatcher
- extends AbstractDispatcher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoapSessionDispatcher
public SoapSessionDispatcher()
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.