public class SALSessions extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clearSessions()
Clear all the expired sessions
|
List<Endpoint> |
getChildEndpoints(SessionInformation information)
Returns endpoint sequence related to the given session
|
static SALSessions |
getInstance() |
SessionInformation |
getSession(String sessionID)
return the endpoint for the given session.
|
void |
initialize(boolean isClusteringEnable,
org.apache.axis2.context.ConfigurationContext cc)
Initialize SALSessions instance
|
boolean |
isInitialized() |
void |
registerChildren(Endpoint endpoint,
List<Endpoint> endpoints)
This method only use in a clustered environment.
|
void |
removeSession(String sessionId)
Removes the endpoint for the given session.
|
void |
removeSessionsOfMember(org.apache.axis2.clustering.Member member)
Updates sessions corresponds to a particular member from the
establishedSessions |
void |
reset() |
void |
updateSession(MessageContext synCtx,
SessionCookie cookie)
Update or establish a session
|
void |
updateSession(MessageContext synCtx,
String sessionID)
Update or establish a session
|
public static SALSessions getInstance()
public void initialize(boolean isClusteringEnable,
org.apache.axis2.context.ConfigurationContext cc)
isClusteringEnable - is this a clustered environmentcc - Axis config contextpublic void registerChildren(Endpoint endpoint, List<Endpoint> endpoints)
endpoint - Root endpoint nameendpoints - childrenpublic void updateSession(MessageContext synCtx, String sessionID)
synCtx - Synapse MessageContextsessionID - session idpublic void updateSession(MessageContext synCtx, SessionCookie cookie)
synCtx - Synapse MessageContextsessionID - session idpublic SessionInformation getSession(String sessionID)
sessionID - The session identifierpublic List<Endpoint> getChildEndpoints(SessionInformation information)
information - Session informationpublic void removeSession(String sessionId)
sessionId - The session identifierpublic void clearSessions()
public boolean isInitialized()
public void reset()
public void removeSessionsOfMember(org.apache.axis2.clustering.Member member)
establishedSessionsmember - subjected MemberCopyright © 2005–2024 Apache Software Foundation. All rights reserved.