public class HttpSessionWrapper extends Object implements javax.servlet.http.HttpSession
| Constructor and Description |
|---|
HttpSessionWrapper(javax.servlet.http.HttpSession session,
ExtServletContext context,
org.apache.felix.http.base.internal.HttpConfig config,
boolean terminate)
Creates a new
HttpSessionWrapper instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
getAttribute(String name) |
Enumeration<String> |
getAttributeNames() |
long |
getCreationTime() |
static Set<String> |
getExpiredSessionContextNames(javax.servlet.http.HttpSession session) |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext() |
static Set<String> |
getSessionContextNames(javax.servlet.http.HttpSession session)
Get the names of all contexts using a session.
|
Object |
getValue(String name) |
String[] |
getValueNames() |
int |
hashCode() |
static boolean |
hasSession(String contextName,
javax.servlet.http.HttpSession session) |
void |
invalidate() |
boolean |
isNew() |
void |
putValue(String name,
Object value) |
void |
removeAttribute(String name) |
void |
removeValue(String name) |
void |
setAttribute(String name,
Object value) |
void |
setMaxInactiveInterval(int interval) |
public HttpSessionWrapper(javax.servlet.http.HttpSession session,
ExtServletContext context,
org.apache.felix.http.base.internal.HttpConfig config,
boolean terminate)
HttpSessionWrapper instance.public static boolean hasSession(String contextName, javax.servlet.http.HttpSession session)
public static Set<String> getExpiredSessionContextNames(javax.servlet.http.HttpSession session)
public static Set<String> getSessionContextNames(javax.servlet.http.HttpSession session)
session - The underlying sessionpublic Object getAttribute(String name)
getAttribute in interface javax.servlet.http.HttpSessionpublic Enumeration<String> getAttributeNames()
getAttributeNames in interface javax.servlet.http.HttpSessionpublic long getCreationTime()
getCreationTime in interface javax.servlet.http.HttpSessionpublic String getId()
getId in interface javax.servlet.http.HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface javax.servlet.http.HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.http.HttpSessionpublic Object getValue(String name)
getValue in interface javax.servlet.http.HttpSessionpublic String[] getValueNames()
getValueNames in interface javax.servlet.http.HttpSessionpublic void invalidate()
invalidate in interface javax.servlet.http.HttpSessionpublic boolean isNew()
isNew in interface javax.servlet.http.HttpSessionpublic void putValue(String name, Object value)
putValue in interface javax.servlet.http.HttpSessionpublic void removeAttribute(String name)
removeAttribute in interface javax.servlet.http.HttpSessionpublic void removeValue(String name)
removeValue in interface javax.servlet.http.HttpSessionpublic void setAttribute(String name, Object value)
setAttribute in interface javax.servlet.http.HttpSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext in interface javax.servlet.http.HttpSessionCopyright © 2006–2020 The Apache Software Foundation. All rights reserved.