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
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.endpoints.dispatch.AbstractDispatcher
log
-
-
Constructor Summary
Constructors Constructor Description SoapSessionDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 messagevoid
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
extractSessionCookie, extractSessionID, extractSessionID, getEndpoints, removeSessionID, removeSessionID
-
-
-
-
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
-
-