public class HttpSessionImpl
extends java.lang.Object
implements javax.servlet.http.HttpSession
HttpSession based on Session support.| Constructor and Description |
|---|
HttpSessionImpl(WebappContext contextImpl)
Create an HttpSession.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
access()
Reset the timestamp.
|
java.lang.Object |
getAttribute(java.lang.String key) |
java.util.Enumeration<java.lang.String> |
getAttributeNames() |
long |
getCreationTime() |
java.lang.String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext() |
java.lang.Object |
getValue(java.lang.String value) |
java.lang.String[] |
getValueNames() |
void |
invalidate() |
boolean |
isNew() |
protected void |
notifyIdChanged(java.lang.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(java.lang.String key,
java.lang.Object value) |
void |
removeAttribute(java.lang.String key) |
void |
removeValue(java.lang.String key) |
void |
setAttribute(java.lang.String key,
java.lang.Object value) |
void |
setMaxInactiveInterval(int sessionTimeout) |
protected void |
setSession(Session session)
Set the
Session |
public HttpSessionImpl(WebappContext contextImpl)
contextImpl - public long getCreationTime()
getCreationTime in interface javax.servlet.http.HttpSessionpublic java.lang.String getId()
getId in interface javax.servlet.http.HttpSessionpublic 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 java.lang.Object getAttribute(java.lang.String key)
getAttribute in interface javax.servlet.http.HttpSessionpublic java.lang.Object getValue(java.lang.String value)
getValue in interface javax.servlet.http.HttpSessionpublic java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames in interface javax.servlet.http.HttpSessionpublic java.lang.String[] getValueNames()
getValueNames in interface javax.servlet.http.HttpSessionpublic void setAttribute(java.lang.String key,
java.lang.Object value)
setAttribute in interface javax.servlet.http.HttpSessionpublic void putValue(java.lang.String key,
java.lang.Object value)
putValue in interface javax.servlet.http.HttpSessionpublic void removeAttribute(java.lang.String key)
removeAttribute in interface javax.servlet.http.HttpSessionpublic void removeValue(java.lang.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(java.lang.String oldId)
HttpSessionListener of the
session has just been created.Copyright © 2014 Oracle Corporation. All Rights Reserved.