net.sourceforge.jaulp.auth
Class UserSessionContext

java.lang.Object
  extended by net.sourceforge.jaulp.auth.UserSessionContext
All Implemented Interfaces:
java.io.Serializable, SessionContext<java.lang.String>

public class UserSessionContext
extends java.lang.Object
implements SessionContext<java.lang.String>

The Class UserSessionContext. Singleton object.

Version:
1.0
Author:
Asterios Raptis
See Also:
Serialized Form

Method Summary
 void addSession(Session session)
          Adds the session to the context.
static SessionContext<java.lang.String> getInstance()
          Returns the field instance.
 Session getSession(java.lang.String id)
          Gets the session from the given id.
 void removeSession(java.lang.String id)
          Removes the session from the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SessionContext<java.lang.String> getInstance()
Returns the field instance.

Returns:
The field instance.

addSession

public void addSession(Session session)
Adds the session to the context.

Specified by:
addSession in interface SessionContext<java.lang.String>
Parameters:
session - the session
See Also:
SessionContext.addSession(net.sourceforge.jaulp.auth.interfaces.Session)

getSession

public Session getSession(java.lang.String id)
Gets the session from the given id.

Specified by:
getSession in interface SessionContext<java.lang.String>
Parameters:
id - the id
Returns:
the session
See Also:
SessionContext.getSession(Object)

removeSession

public void removeSession(java.lang.String id)
Removes the session from the context.

Specified by:
removeSession in interface SessionContext<java.lang.String>
Parameters:
id - the id from the session to be removed.
See Also:
SessionContext.removeSession(Object)


Copyright © 2010. All Rights Reserved.