public class StatelessSession extends Object implements javax.servlet.http.HttpSession, Serializable
Constructor and Description |
---|
StatelessSession(StatelessRequestWrapper request)
Creates a new StatelessSession.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name) |
Enumeration |
getAttributeNames() |
Map<String,Object> |
getContent()
Get all session content.
|
long |
getCreationTime() |
List<String> |
getDirtyAttributes() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext()
Deprecated.
|
Object |
getValue(String name)
Deprecated.
|
String[] |
getValueNames()
Deprecated.
|
void |
init()
Init session internal values.
|
void |
init(boolean newSession)
Init session internal values.
|
void |
invalidate() |
boolean |
isDirty() |
boolean |
isNew() |
boolean |
isPropertyDirty() |
boolean |
isValid()
Checks session validity
|
void |
merge(ISessionData data)
Merge session data with an external ISessionData object.
|
void |
putValue(String name,
Object value)
Deprecated.
|
void |
removeAttribute(String name) |
void |
removeValue(String name)
Deprecated.
|
void |
setAttribute(String name,
Object value) |
void |
setMaxInactiveInterval(int interval) |
void |
setNew(boolean b)
Set session new state.
|
public StatelessSession(StatelessRequestWrapper request)
request
- public Object getAttribute(String name)
getAttribute
in interface javax.servlet.http.HttpSession
HttpSession.getAttribute(java.lang.String)
public Enumeration getAttributeNames()
getAttributeNames
in interface javax.servlet.http.HttpSession
HttpSession.getAttributeNames()
public long getCreationTime()
getCreationTime
in interface javax.servlet.http.HttpSession
HttpSession.getCreationTime()
public String getId()
getId
in interface javax.servlet.http.HttpSession
HttpSession.getId()
public long getLastAccessedTime()
getLastAccessedTime
in interface javax.servlet.http.HttpSession
HttpSession.getLastAccessedTime()
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface javax.servlet.http.HttpSession
HttpSession.getMaxInactiveInterval()
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.http.HttpSession
HttpSession.getServletContext()
@Deprecated public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext
in interface javax.servlet.http.HttpSession
HttpSession.getSessionContext()
@Deprecated public Object getValue(String name)
getValue
in interface javax.servlet.http.HttpSession
HttpSession.getValue(java.lang.String)
@Deprecated public String[] getValueNames()
getValueNames
in interface javax.servlet.http.HttpSession
HttpSession.getValueNames()
public void init() throws NoSuchAlgorithmException
NoSuchAlgorithmException
- - if strong random generator not availablepublic void init(boolean newSession) throws NoSuchAlgorithmException
newSession
- NoSuchAlgorithmException
public void invalidate()
invalidate
in interface javax.servlet.http.HttpSession
HttpSession.invalidate()
public boolean isDirty()
public boolean isNew()
isNew
in interface javax.servlet.http.HttpSession
HttpSession.isNew()
public boolean isPropertyDirty()
public boolean isValid()
public void merge(ISessionData data)
data
- @Deprecated public void putValue(String name, Object value)
putValue
in interface javax.servlet.http.HttpSession
HttpSession.putValue(java.lang.String,
java.lang.Object)
public void removeAttribute(String name)
removeAttribute
in interface javax.servlet.http.HttpSession
HttpSession.removeAttribute(java.lang.String)
@Deprecated public void removeValue(String name)
removeValue
in interface javax.servlet.http.HttpSession
HttpSession.removeValue(java.lang.String)
public void setAttribute(String name, Object value)
setAttribute
in interface javax.servlet.http.HttpSession
HttpSession.setAttribute(java.lang.String,
java.lang.Object)
public void setMaxInactiveInterval(int interval)
setMaxInactiveInterval
in interface javax.servlet.http.HttpSession
HttpSession.setMaxInactiveInterval(int)
public void setNew(boolean b)
b
- Copyright © 2009–2013. All rights reserved.