| 限定符和类型 | 方法和说明 |
|---|---|
ServletHttpSession |
access() |
void |
clear() |
Object |
getAttribute(String name) |
Enumeration<String> |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
ServletPrincipal |
getPrincipal() |
ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext() |
Object |
getValue(String name) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isNew() |
boolean |
isValid()
The validity of
|
void |
putValue(String name,
Object value) |
void |
remove() |
void |
removeAttribute(String name) |
void |
removeValue(String name) |
void |
save() |
void |
setAttribute(String name,
Object value) |
void |
setId(String id) |
void |
setMaxInactiveInterval(int interval) |
void |
setNewSessionFlag(boolean newSessionFlag) |
void |
setPrincipal(ServletPrincipal principal) |
void |
setServletContext(ServletContext servletContext) |
String |
toString() |
Session |
unwrap()
get source object
|
void |
wrap(Session source)
wrap
|
public ServletPrincipal getPrincipal()
public void setPrincipal(ServletPrincipal principal)
public void setServletContext(ServletContext servletContext)
public void setId(String id)
public void save()
public void remove()
public long getCreationTime()
getCreationTime 在接口中 javax.servlet.http.HttpSessionpublic String getId()
getId 在接口中 javax.servlet.http.HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime 在接口中 javax.servlet.http.HttpSessionpublic ServletContext getServletContext()
getServletContext 在接口中 javax.servlet.http.HttpSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval 在接口中 javax.servlet.http.HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval 在接口中 javax.servlet.http.HttpSessionpublic 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 isValid()
public void setNewSessionFlag(boolean newSessionFlag)
public ServletHttpSession access()
public void clear()
Copyright © 2021. All rights reserved.