public interface HttpSession
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Enumeration |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
ServletContext |
getServletContext() |
HttpSessionContext |
getSessionContext()
Deprecated.
As of Version 2.1, this method is deprecated and has no
replacement. It will be removed in a future version of the
Java Servlet API.
|
Object |
getValue(String name)
Deprecated.
As of Version 2.2, this method is replaced by
getAttribute(java.lang.String).
|
String[] |
getValueNames()
Deprecated.
As of Version 2.2, this method is replaced by
getAttributeNames()
|
void |
invalidate() |
boolean |
isNew() |
void |
putValue(String name,
Object value)
Deprecated.
As of Version 2.2, this method is replaced by
setAttribute(java.lang.String, java.lang.Object)
|
void |
removeAttribute(String name) |
void |
removeValue(String name)
Deprecated.
As of Version 2.2, this method is replaced by
removeAttribute(java.lang.String)
|
void |
setAttribute(String name,
Object value) |
void |
setMaxInactiveInterval(int interval) |
Enumeration getAttributeNames()
long getCreationTime()
String getId()
long getLastAccessedTime()
int getMaxInactiveInterval()
ServletContext getServletContext()
void invalidate()
boolean isNew()
void removeAttribute(String name)
void setMaxInactiveInterval(int interval)
HttpSessionContext getSessionContext()
Object getValue(String name)
String[] getValueNames()
void putValue(String name, Object value)
void removeValue(String name)
Copyright © 2014. All rights reserved.