org.exist.http.servlets
Class HttpSessionWrapper
java.lang.Object
org.exist.http.servlets.HttpSessionWrapper
- All Implemented Interfaces:
- SessionWrapper
public class HttpSessionWrapper
- extends Object
- implements SessionWrapper
- Author:
- Wolfgang Meier (wolfgang@exist-db.org)
HttpSessionWrapper
public HttpSessionWrapper(HttpSession session)
getServletContext
public ServletContext getServletContext()
- Returns:
- the javax.servlet.ServletContext
getAttribute
public Object getAttribute(String arg0)
- Specified by:
getAttribute
in interface SessionWrapper
- Parameters:
arg0
-
- Returns:
- Returns the session attribute object or null
getAttributeNames
public Enumeration getAttributeNames()
- Specified by:
getAttributeNames
in interface SessionWrapper
- Returns:
- An enumeration of all the attribute names
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTime
in interface SessionWrapper
- Returns:
- The creation time of the session
getId
public String getId()
- Specified by:
getId
in interface SessionWrapper
- Returns:
- The id of the session
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
getLastAccessedTime
in interface SessionWrapper
- Returns:
- The last time the session was accessed
getMaxInactiveInterval
public int getMaxInactiveInterval()
- Specified by:
getMaxInactiveInterval
in interface SessionWrapper
- Returns:
- The maximum inactive interval.
invalidate
public void invalidate()
- Specified by:
invalidate
in interface SessionWrapper
isNew
public boolean isNew()
- Specified by:
isNew
in interface SessionWrapper
- Returns:
- A boolean indicating if the session was just created
removeAttribute
public void removeAttribute(String arg0)
- Specified by:
removeAttribute
in interface SessionWrapper
- Parameters:
arg0
-
setAttribute
public void setAttribute(String arg0,
Object arg1)
- Specified by:
setAttribute
in interface SessionWrapper
- Parameters:
arg0
- arg1
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int arg0)
- Specified by:
setMaxInactiveInterval
in interface SessionWrapper
- Parameters:
arg0
-
Copyright (C) Wolfgang Meier. All rights reserved.