public class JbootHttpSession extends Object implements javax.servlet.http.HttpSession
| 限定符和类型 | 字段和说明 |
|---|---|
private long |
createdAt |
private boolean |
dataChanged |
private Set<String> |
deleteAttribute |
private boolean |
empty |
private String |
id |
private boolean |
invalid |
private long |
lastAccessedAt |
private int |
maxInactiveInterval |
private Map<String,Object> |
newAttributes |
private javax.servlet.http.HttpSession |
originSession |
private javax.servlet.ServletContext |
servletContext |
private Map<String,Object> |
sessionStore |
| 构造器和说明 |
|---|
JbootHttpSession(String id,
javax.servlet.ServletContext servletContext,
Map<String,Object> sessionStore,
javax.servlet.http.HttpSession originSession) |
| 限定符和类型 | 方法和说明 |
|---|---|
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()
已过时。
|
Object |
getValue(String name) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isDataChanged() |
boolean |
isEmpty() |
boolean |
isNew() |
boolean |
isValid() |
void |
putValue(String name,
Object value) |
void |
removeAttribute(String name) |
void |
removeValue(String name) |
void |
setAttribute(String name,
Object value) |
void |
setMaxInactiveInterval(int interval) |
Map<String,Object> |
snapshot() |
private final long createdAt
private volatile long lastAccessedAt
private int maxInactiveInterval
private final javax.servlet.ServletContext servletContext
private final Map<String,Object> newAttributes
private final Set<String> deleteAttribute
private final Map<String,Object> sessionStore
private volatile boolean invalid
private volatile boolean dataChanged
private volatile boolean empty
private volatile javax.servlet.http.HttpSession originSession
public JbootHttpSession(String id, javax.servlet.ServletContext servletContext, Map<String,Object> sessionStore, javax.servlet.http.HttpSession originSession)
public long getCreationTime()
getCreationTime 在接口中 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.HttpSessionpublic boolean isDataChanged()
public boolean isValid()
protected void checkValid() throws IllegalStateException
public boolean isEmpty()
Copyright © 2024. All rights reserved.