public class StandardSessionManager extends java.lang.Object implements SessionManager
| Constructor and Description |
|---|
StandardSessionManager(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Session session)
Add this session to the set of active sessions for this
SessionManager. |
void |
changeSessionId(Session session)
Change the session ID of the current session to a new randomly generated session ID.
|
Session |
createSession()
Create a new session object.
|
Session |
findSession(java.lang.String id)
Return the active session, with the specified session id (if any); otherwise return
null. |
void |
remove(Session session)
Remove this session from the active sessions for this
SessionManager. |
public StandardSessionManager(android.content.Context context)
public void add(Session session) throws java.io.IOException
SessionManagerSessionManager.add in interface SessionManagersession - session to be added.java.io.IOException - if an output error occurs while processing this request.public void changeSessionId(Session session)
SessionManagerchangeSessionId in interface SessionManagersession - the session to change the session ID for.public Session createSession()
SessionManagercreateSession in interface SessionManagerpublic Session findSession(java.lang.String id) throws java.io.IOException, java.lang.ClassNotFoundException
SessionManagernull.findSession in interface SessionManagerid - the session id for the session to be returned.null.java.io.IOException - if an output error occurs while processing this request.java.lang.ClassNotFoundExceptionpublic void remove(Session session)
SessionManagerSessionManager.remove in interface SessionManagersession - session to be removed.