FileDocCategorySizeDatePackage
StandardSessionFacade.javaAPI DocGlassfish v2 API5157Fri May 04 22:32:20 BST 2007org.apache.catalina.session

StandardSessionFacade

public class StandardSessionFacade extends Object implements HttpSession
Facade for the StandardSession object.
author
Remy Maucherat
version
$Revision: 1.3 $ $Date: 2007/05/05 05:32:19 $

Fields Summary
private HttpSession
session
Wrapped session object.
Constructors Summary
public StandardSessionFacade(StandardSession session)
Construct a new session facade.

        super();
        this.session = (HttpSession) session;
    
public StandardSessionFacade(HttpSession session)
Construct a new session facade.

        super();
        this.session = session;
    
Methods Summary
public java.lang.ObjectgetAttribute(java.lang.String name)

        return session.getAttribute(name);
    
public java.util.EnumerationgetAttributeNames()

        return session.getAttributeNames();
    
public longgetCreationTime()



    // ---------------------------------------------------- HttpSession Methods


       
        return session.getCreationTime();
    
public java.lang.StringgetId()

        return session.getId();
    
public longgetLastAccessedTime()

        return session.getLastAccessedTime();
    
public intgetMaxInactiveInterval()

        return session.getMaxInactiveInterval();
    
public javax.servlet.ServletContextgetServletContext()

        // FIXME : Facade this object ?
        return session.getServletContext();
    
public javax.servlet.http.HttpSessionContextgetSessionContext()

        return session.getSessionContext();
    
public java.lang.ObjectgetValue(java.lang.String name)

        return session.getAttribute(name);
    
public java.lang.String[]getValueNames()

        return session.getValueNames();
    
public voidinvalidate()

        session.invalidate();
    
public booleanisNew()

        return session.isNew();
    
public voidputValue(java.lang.String name, java.lang.Object value)

        session.setAttribute(name, value);
    
public voidremoveAttribute(java.lang.String name)

        session.removeAttribute(name);
    
public voidremoveValue(java.lang.String name)

        session.removeAttribute(name);
    
public voidsetAttribute(java.lang.String name, java.lang.Object value)

        session.setAttribute(name, value);
    
public voidsetMaxInactiveInterval(int interval)

        session.setMaxInactiveInterval(interval);