public class HttpSessionImpl extends Object implements HttpSession
| Constructor and Description |
|---|
HttpSessionImpl() |
HttpSessionImpl(String contextPath,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
callListeners() |
Object |
getAttribute(String name)
Returns the object bound with the specified name in this session, or
null if no object is bound under the name. |
Enumeration<String> |
getAttributeNames() |
long |
getCreationTime() |
String |
getId()
Returns a string containing the unique identifier assigned to this
session.
|
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext() |
Object |
getValue(String s) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isNew() |
void |
newSessionId() |
void |
putValue(String s,
Object o) |
void |
removeAttribute(String name) |
void |
removeValue(String s) |
void |
setAttribute(String name,
Object value)
Binds an object to this session, using the name specified.
|
void |
setMaxInactiveInterval(int i) |
public HttpSessionImpl(String contextPath, long timeout)
public HttpSessionImpl()
public void callListeners()
public void newSessionId()
public void removeAttribute(String name)
removeAttribute in interface javax.servlet.http.HttpSessionpublic void removeValue(String s)
removeValue in interface javax.servlet.http.HttpSessionpublic void invalidate()
invalidate in interface javax.servlet.http.HttpSessionpublic boolean isNew()
isNew in interface javax.servlet.http.HttpSessionpublic Object getAttribute(String name)
HttpSessionnull if no object is bound under the name.getAttribute in interface javax.servlet.http.HttpSessionname - a string specifying the name of the objectpublic Object getValue(String s)
getValue in interface javax.servlet.http.HttpSessionpublic Enumeration<String> getAttributeNames()
getAttributeNames in interface javax.servlet.http.HttpSessionpublic String[] getValueNames()
getValueNames in interface javax.servlet.http.HttpSessionpublic void setAttribute(String name, Object value)
HttpSessionsetAttribute in interface javax.servlet.http.HttpSessionname - the name to which the object is bound; cannot be nullvalue - the object to be boundpublic void putValue(String s, Object o)
putValue in interface javax.servlet.http.HttpSessionpublic long getCreationTime()
getCreationTime in interface javax.servlet.http.HttpSessionpublic String getId()
HttpSessiongetId in interface javax.servlet.http.HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface javax.servlet.http.HttpSessionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.http.HttpSessionpublic void setMaxInactiveInterval(int i)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext in interface javax.servlet.http.HttpSessionCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.