|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.objectweb.jac.core.Wrapper
|
+--org.objectweb.jac.aspects.session.SessionWrapper
This wrapper handles the session for each object within the JAC system.
handleSession(Interaction),
Serialized Form| Field Summary | |
protected static Hashtable |
applications
Stores the applications (sid -> applicationName) |
protected static Hashtable |
sessions
Stores the sessions and their contextual attributes (sid -> saved attributes). |
| Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
| Constructor Summary | |
SessionWrapper(AspectComponent ac)
|
|
| Method Summary | |
void |
clearCurrentSessionAttribute(String name)
Removes a session attribute. |
Object |
construct(ConstructorInvocation invocation)
|
Object |
handleSession(Interaction interaction)
Handles sessions for the wrapped method. |
Object |
invoke(MethodInvocation invocation)
|
| Methods inherited from class org.objectweb.jac.core.Wrapper |
attr, attrdef, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static Hashtable sessions
protected static Hashtable applications
| Constructor Detail |
public SessionWrapper(AspectComponent ac)
| Method Detail |
public void clearCurrentSessionAttribute(String name)
The given attribute will be forgotten for the current interaction and for all the forthcoming interactions of the same session. This can be used for instance to log-out a user.
name - the name of the attribute to forgetpublic Object handleSession(Interaction interaction)
The session handling algorithm is:
attr("Session.sid") -
is not defined, do nothingsessions field
public Object invoke(MethodInvocation invocation)
throws Throwable
invoke in interface MethodInterceptorinvoke in class WrapperThrowable
public Object construct(ConstructorInvocation invocation)
throws Throwable
construct in interface ConstructorInterceptorconstruct in class WrapperThrowable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||