|
||||||||||
| 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 | |
|---|---|
Object |
getAttribute(String name)
|
Enumeration |
getAttributeNames()
|
long |
getCreationTime()
|
String |
getId()
|
long |
getLastAccessedTime()
|
int |
getMaxInactiveInterval()
|
javax.servlet.ServletContext |
getServletContext()
Returns the ServletContext to which this session belongs. |
javax.servlet.http.HttpSessionContext |
getSessionContext()
Deprecated. |
Object |
getValue(String name)
|
String[] |
getValueNames()
|
void |
invalidate()
|
boolean |
isNew()
|
void |
putValue(String name,
Object value)
|
void |
removeAttribute(String name)
|
void |
removeValue(String name)
|
void |
setAttribute(String name,
Object value)
|
void |
setListeners(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 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 Object getAttribute(String name)
throws IllegalStateException
getAttribute in interface javax.servlet.http.HttpSessionIllegalStateException
public Object getValue(String name)
throws IllegalStateException
getValue in interface javax.servlet.http.HttpSessionIllegalStateException
public Enumeration getAttributeNames()
throws IllegalStateException
getAttributeNames in interface javax.servlet.http.HttpSessionIllegalStateException
public String[] getValueNames()
throws IllegalStateException
getValueNames in interface javax.servlet.http.HttpSessionIllegalStateException
public void setAttribute(String name,
Object value)
throws IllegalStateException
setAttribute in interface javax.servlet.http.HttpSessionIllegalStateException
public void putValue(String name,
Object value)
throws IllegalStateException
putValue in interface javax.servlet.http.HttpSessionIllegalStateException
public void removeAttribute(String name)
throws IllegalStateException
removeAttribute in interface javax.servlet.http.HttpSessionIllegalStateException
public void removeValue(String name)
throws IllegalStateException
removeValue in interface javax.servlet.http.HttpSessionIllegalStateException
public void invalidate()
throws IllegalStateException
invalidate in interface javax.servlet.http.HttpSessionIllegalStateException
public boolean isNew()
throws IllegalStateException
isNew in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic void setListeners(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 | |||||||||