|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.endpoints.dispatch.AbstractDispatcher
org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher
public class HttpSessionDispatcher
Dispatches sessions based on HTTP cookies. Session is initiated by the server in the first response when it sends "Set-Cookie" HTTP header with the session ID. For all successive messages client should send "Cookie" HTTP header with session ID send by the server.
| Field Summary | |
|---|---|
static String |
HOSTS
|
| Fields inherited from class org.apache.synapse.endpoints.dispatch.AbstractDispatcher |
|---|
log |
| Constructor Summary | |
|---|---|
HttpSessionDispatcher()
|
|
| Method Summary | |
|---|---|
protected List<String> |
extractSessionIDs(MessageContext synCtx,
String key)
|
SessionInformation |
getSession(MessageContext synCtx)
Check if "Cookie" HTTP header is available. |
boolean |
isServerInitiatedSession()
HTTP sessions are 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)
Searches for "Set-Cookie" HTTP header in the message context. |
| 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 |
| Field Detail |
|---|
public static final String HOSTS
| Constructor Detail |
|---|
public HttpSessionDispatcher()
| Method Detail |
|---|
public SessionInformation getSession(MessageContext synCtx)
synCtx - MessageContext possibly containing a "Cookie" HTTP header.
public void updateSession(MessageContext synCtx)
synCtx - MessageContext possibly containing the "Set-Cookie" HTTP header.public void unbind(MessageContext synCtx)
Dispatcher
synCtx - MessageContext containing an session ID.public boolean isServerInitiatedSession()
public void removeSessionID(MessageContext syCtx)
Dispatcher
syCtx - MessageContext containing an session ID
protected List<String> extractSessionIDs(MessageContext synCtx,
String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||