public class HttpSessionImpl extends Object implements javax.servlet.http.HttpSession
| 构造器和说明 |
|---|
HttpSessionImpl(HttpSessionManager sessionManager,
String id,
long creationTime,
int maxInactiveInterval) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getAttribute(String name) |
Enumeration<String> |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext()
已过时。
|
Object |
getValue(String name) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isNew() |
void |
putValue(String name,
Object value) |
void |
removeAttribute(String name) |
void |
removeValue(String name) |
void |
setAttribute(String name,
Object value) |
void |
setMaxInactiveInterval(int interval) |
public HttpSessionImpl(HttpSessionManager sessionManager, String id, long creationTime, int maxInactiveInterval)
public long getCreationTime()
getCreationTime 在接口中 javax.servlet.http.HttpSessionpublic String getId()
getId 在接口中 javax.servlet.http.HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime 在接口中 javax.servlet.http.HttpSessionpublic javax.servlet.ServletContext getServletContext()
getServletContext 在接口中 javax.servlet.http.HttpSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval 在接口中 javax.servlet.http.HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval 在接口中 javax.servlet.http.HttpSession@Deprecated public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext 在接口中 javax.servlet.http.HttpSessionpublic Object getAttribute(String name)
getAttribute 在接口中 javax.servlet.http.HttpSessionpublic Enumeration<String> getAttributeNames()
getAttributeNames 在接口中 javax.servlet.http.HttpSessionpublic String[] getValueNames()
getValueNames 在接口中 javax.servlet.http.HttpSessionpublic void setAttribute(String name, Object value)
setAttribute 在接口中 javax.servlet.http.HttpSessionpublic void putValue(String name, Object value)
putValue 在接口中 javax.servlet.http.HttpSessionpublic void removeAttribute(String name)
removeAttribute 在接口中 javax.servlet.http.HttpSessionpublic void removeValue(String name)
removeValue 在接口中 javax.servlet.http.HttpSessionpublic void invalidate()
invalidate 在接口中 javax.servlet.http.HttpSessionpublic boolean isNew()
isNew 在接口中 javax.servlet.http.HttpSessionCopyright © 2016. All rights reserved.