|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable
Acme.Serve.Serve.AcmeSession
public static class Serve.AcmeSession
Http session support
TODO: provide lazy session restoring, it should allow to load classes from wars 1st step it read serialization data and store under session attribute 2nd when the session requested, it tries to deserialize all session attributes considered that all classes available
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
|
java.util.Enumeration |
getAttributeNames()
|
long |
getCreationTime()
|
java.lang.String |
getId()
|
long |
getLastAccessedTime()
|
int |
getMaxInactiveInterval()
|
javax.servlet.ServletContext |
getServletContext()
Returns the ServletContext to which this session belongs. |
javax.servlet.http.HttpSessionContext |
getSessionContext()
Deprecated. |
java.lang.Object |
getValue(java.lang.String name)
|
java.lang.String[] |
getValueNames()
|
void |
invalidate()
|
boolean |
isNew()
|
void |
putValue(java.lang.String name,
java.lang.Object value)
|
void |
removeAttribute(java.lang.String name)
|
void |
removeValue(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setListeners(java.util.List l)
|
void |
setMaxInactiveInterval(int interval)
|
void |
setServletContext(javax.servlet.ServletContext sc)
something hack, to update servlet context since session created out of scope |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public long getCreationTime()
getCreationTime in interface javax.servlet.http.HttpSessionpublic java.lang.String getId()
getId in interface javax.servlet.http.HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface javax.servlet.http.HttpSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext in interface javax.servlet.http.HttpSessionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.http.HttpSession
public java.lang.Object getAttribute(java.lang.String name)
throws java.lang.IllegalStateException
getAttribute in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateException
public java.lang.Object getValue(java.lang.String name)
throws java.lang.IllegalStateException
getValue in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateException
public java.util.Enumeration getAttributeNames()
throws java.lang.IllegalStateException
getAttributeNames in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateException
public java.lang.String[] getValueNames()
throws java.lang.IllegalStateException
getValueNames in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateException
public void setAttribute(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalStateException
setAttribute in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateException
public void putValue(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalStateException
putValue in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateException
public void removeAttribute(java.lang.String name)
throws java.lang.IllegalStateException
removeAttribute in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateException
public void removeValue(java.lang.String name)
throws java.lang.IllegalStateException
removeValue in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateException
public void invalidate()
throws java.lang.IllegalStateException
invalidate in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateException
public boolean isNew()
throws java.lang.IllegalStateException
isNew in interface javax.servlet.http.HttpSessionjava.lang.IllegalStateExceptionpublic void setListeners(java.util.List l)
public void setServletContext(javax.servlet.ServletContext sc)
sc -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||