public class WinstoneSession extends java.lang.Object implements HttpSession, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SESSION_COOKIE_NAME |
| Constructor and Description |
|---|
WinstoneSession(java.lang.String sessionId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(WebAppConfiguration webAppConfig)
Called after the session has been deserialized from another server.
|
void |
addUsed(WinstoneRequest request) |
java.lang.Object |
getAttribute(java.lang.String name) |
java.util.Enumeration |
getAttributeNames() |
long |
getCreationTime() |
java.lang.String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
ServletContext |
getServletContext() |
HttpSessionContext |
getSessionContext()
Deprecated.
|
static java.io.File |
getSessionTempDir(WebAppConfiguration webAppConfig) |
java.lang.Object |
getValue(java.lang.String name)
Deprecated.
|
java.lang.String[] |
getValueNames()
Deprecated.
|
void |
invalidate() |
boolean |
isExpired() |
boolean |
isNew() |
boolean |
isUnusedByRequests() |
static void |
loadSessions(WebAppConfiguration webAppConfig) |
void |
passivate()
Called after the session has been serialized to another server.
|
void |
putValue(java.lang.String name,
java.lang.Object value)
Deprecated.
|
void |
removeAttribute(java.lang.String name) |
void |
removeUsed(WinstoneRequest request) |
void |
removeValue(java.lang.String name)
Deprecated.
|
void |
saveToTemp()
Save this session to the temp dir defined for this webapp
|
void |
sendCreatedNotifies() |
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
void |
setIsNew(boolean isNew) |
void |
setLastAccessedDate(long time) |
void |
setMaxInactiveInterval(int interval) |
void |
setSessionActivationListeners(HttpSessionActivationListener[] listeners) |
void |
setSessionAttributeListeners(HttpSessionAttributeListener[] listeners) |
void |
setSessionListeners(HttpSessionListener[] listeners) |
void |
setWebAppConfiguration(WebAppConfiguration webAppConfig) |
public void setWebAppConfiguration(WebAppConfiguration webAppConfig)
public void sendCreatedNotifies()
public void setSessionActivationListeners(HttpSessionActivationListener[] listeners)
public void setSessionAttributeListeners(HttpSessionAttributeListener[] listeners)
public void setSessionListeners(HttpSessionListener[] listeners)
public void setLastAccessedDate(long time)
public void setIsNew(boolean isNew)
public void addUsed(WinstoneRequest request)
public void removeUsed(WinstoneRequest request)
public boolean isUnusedByRequests()
public boolean isExpired()
public java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface HttpSessionpublic java.util.Enumeration getAttributeNames()
getAttributeNames in interface HttpSessionpublic void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface HttpSessionpublic void removeAttribute(java.lang.String name)
removeAttribute in interface HttpSessionpublic long getCreationTime()
getCreationTime in interface HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface HttpSessionpublic java.lang.String getId()
getId in interface HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface HttpSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface HttpSessionpublic boolean isNew()
isNew in interface HttpSessionpublic ServletContext getServletContext()
getServletContext in interface HttpSessionpublic void invalidate()
invalidate in interface HttpSessionpublic void passivate()
public void activate(WebAppConfiguration webAppConfig)
public void saveToTemp()
public static java.io.File getSessionTempDir(WebAppConfiguration webAppConfig)
public static void loadSessions(WebAppConfiguration webAppConfig)
public java.lang.Object getValue(java.lang.String name)
getValue in interface HttpSessionpublic void putValue(java.lang.String name,
java.lang.Object value)
putValue in interface HttpSessionpublic void removeValue(java.lang.String name)
removeValue in interface HttpSessionpublic java.lang.String[] getValueNames()
getValueNames in interface HttpSessionpublic HttpSessionContext getSessionContext()
getSessionContext in interface HttpSessionCopyright © 2013. All Rights Reserved.