|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwinstone.WinstoneSession
public class WinstoneSession
Http session implementation for Winstone.
Field Summary | |
---|---|
static java.lang.String |
SESSION_COOKIE_NAME
|
Constructor Summary | |
---|---|
WinstoneSession(java.lang.String sessionId)
Constructor |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String SESSION_COOKIE_NAME
Constructor Detail |
---|
public WinstoneSession(java.lang.String sessionId)
Method Detail |
---|
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 HttpSession
public java.util.Enumeration getAttributeNames()
getAttributeNames
in interface HttpSession
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface HttpSession
public void removeAttribute(java.lang.String name)
removeAttribute
in interface HttpSession
public long getCreationTime()
getCreationTime
in interface HttpSession
public long getLastAccessedTime()
getLastAccessedTime
in interface HttpSession
public java.lang.String getId()
getId
in interface HttpSession
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface HttpSession
public void setMaxInactiveInterval(int interval)
setMaxInactiveInterval
in interface HttpSession
public boolean isNew()
isNew
in interface HttpSession
public ServletContext getServletContext()
getServletContext
in interface HttpSession
public void invalidate()
invalidate
in interface HttpSession
public 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 HttpSession
public void putValue(java.lang.String name, java.lang.Object value)
putValue
in interface HttpSession
public void removeValue(java.lang.String name)
removeValue
in interface HttpSession
public java.lang.String[] getValueNames()
getValueNames
in interface HttpSession
public HttpSessionContext getSessionContext()
getSessionContext
in interface HttpSession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |