public class J2CacheSession extends Object implements javax.servlet.http.HttpSession
| 构造器和说明 |
|---|
J2CacheSession(javax.servlet.ServletContext servletContext,
String id,
CacheFacade cache) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
checkValid() |
Object |
getAttribute(String name) |
Enumeration<String> |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext()
已过时。
|
SessionObject |
getSessionObject() |
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) |
void |
setNew(boolean isNew) |
void |
setSessionObject(SessionObject session) |
public J2CacheSession(javax.servlet.ServletContext servletContext,
String id,
CacheFacade cache)
public SessionObject getSessionObject()
public void setSessionObject(SessionObject session)
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.HttpSessionpublic Enumeration<String> getAttributeNames()
getAttributeNames 在接口中 javax.servlet.http.HttpSessionpublic Object getAttribute(String name)
getAttribute 在接口中 javax.servlet.http.HttpSessionpublic void setAttribute(String name, Object value)
setAttribute 在接口中 javax.servlet.http.HttpSessionpublic void removeAttribute(String name)
removeAttribute 在接口中 javax.servlet.http.HttpSessionpublic void invalidate()
invalidate 在接口中 javax.servlet.http.HttpSessionpublic boolean isNew()
isNew 在接口中 javax.servlet.http.HttpSessionpublic void setNew(boolean isNew)
protected void checkValid()
throws IllegalStateException
@Deprecated public Object getValue(String name)
getValue 在接口中 javax.servlet.http.HttpSession@Deprecated public void removeValue(String name)
removeValue 在接口中 javax.servlet.http.HttpSession@Deprecated public void putValue(String name, Object value)
putValue 在接口中 javax.servlet.http.HttpSession@Deprecated public String[] getValueNames()
getValueNames 在接口中 javax.servlet.http.HttpSession@Deprecated public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext 在接口中 javax.servlet.http.HttpSessionCopyright © 2018. All rights reserved.