| Constructor and Description |
|---|
HttpSessionImpl(WebappContext contextImpl,
Session session)
Create an HttpSession.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
access()
Reset the timestamp.
|
Object |
getAttribute(String key) |
Enumeration<String> |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext() |
Object |
getValue(String value) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isNew() |
protected boolean |
isValid()
Is the current Session valid?
|
protected void |
notifyIdChanged(String oldId)
Invoke to notify all registered
HttpSessionListener of the
session has just been created. |
protected void |
notifyNew()
Invoke to notify all registered
HttpSessionListener of the
session has just been created. |
void |
putValue(String key,
Object value) |
void |
removeAttribute(String key) |
void |
removeValue(String key) |
void |
setAttribute(String key,
Object value) |
void |
setMaxInactiveInterval(int sessionTimeout) |
public HttpSessionImpl(WebappContext contextImpl, Session session)
contextImpl - session - internal session objectpublic long getCreationTime()
getCreationTime in interface javax.servlet.http.HttpSessionpublic String getId()
getId in interface javax.servlet.http.HttpSessionprotected boolean isValid()
public long getLastAccessedTime()
getLastAccessedTime in interface javax.servlet.http.HttpSessionprotected void access()
public javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.http.HttpSessionpublic void setMaxInactiveInterval(int sessionTimeout)
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.HttpSessionpublic Object getAttribute(String key)
getAttribute in interface javax.servlet.http.HttpSessionpublic Object getValue(String value)
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 key, Object value)
setAttribute in interface javax.servlet.http.HttpSessionpublic void putValue(String key, Object value)
putValue in interface javax.servlet.http.HttpSessionpublic void removeAttribute(String key)
removeAttribute in interface javax.servlet.http.HttpSessionpublic void removeValue(String key)
removeValue in interface javax.servlet.http.HttpSessionpublic void invalidate()
invalidate in interface javax.servlet.http.HttpSessionpublic boolean isNew()
isNew in interface javax.servlet.http.HttpSessionprotected void notifyNew()
HttpSessionListener of the
session has just been created.protected void notifyIdChanged(String oldId)
HttpSessionListener of the
session has just been created.Copyright © 2019 Oracle Corporation. All Rights Reserved.