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.HttpSession
public String getId()
getId
in interface javax.servlet.http.HttpSession
protected boolean isValid()
public long getLastAccessedTime()
getLastAccessedTime
in interface javax.servlet.http.HttpSession
protected void access()
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.http.HttpSession
public void setMaxInactiveInterval(int sessionTimeout)
setMaxInactiveInterval
in interface javax.servlet.http.HttpSession
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface javax.servlet.http.HttpSession
public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext
in interface javax.servlet.http.HttpSession
public Object getAttribute(String key)
getAttribute
in interface javax.servlet.http.HttpSession
public Object getValue(String value)
getValue
in interface javax.servlet.http.HttpSession
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface javax.servlet.http.HttpSession
public String[] getValueNames()
getValueNames
in interface javax.servlet.http.HttpSession
public void setAttribute(String key, Object value)
setAttribute
in interface javax.servlet.http.HttpSession
public void putValue(String key, Object value)
putValue
in interface javax.servlet.http.HttpSession
public void removeAttribute(String key)
removeAttribute
in interface javax.servlet.http.HttpSession
public void removeValue(String key)
removeValue
in interface javax.servlet.http.HttpSession
public void invalidate()
invalidate
in interface javax.servlet.http.HttpSession
public boolean isNew()
isNew
in interface javax.servlet.http.HttpSession
protected void notifyNew()
HttpSessionListener
of the
session has just been created.protected void notifyIdChanged(String oldId)
HttpSessionListener
of the
session has just been created.Copyright © 2015 Oracle Corporation. All rights reserved.