|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.web.Session
This class defines a session for thin client servers.
Request
,
Serialized FormField Summary | |
protected Stack |
requests
The requests stack for this session. |
protected String |
sid
This session's ID. |
Constructor Summary | |
Session(String sid)
The constructor for a session with a given ID. |
Method Summary | |
Request |
endCurrentRequest()
Ends the current request (same as getRequests().pop() ). |
Request |
getCurrentRequest()
Returns the current request of this session (same as getRequests().peek() ). |
String |
getId()
Returns the session's ID. |
Request |
getPreviousRequest()
Returns the previous request of this session (ie the one that was achieved before the current one). |
int |
getRequestCount()
Returns the number of active requests on the requests stack for this session. |
Stack |
getRequests()
Returns the stack of the requests for this session. |
void |
newRequest(Request request)
Creates a new request for this session (pushes it on the requests stack). |
String |
toString()
Gets a humain-readable string representation of the session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected transient Stack requests
protected String sid
Constructor Detail |
public Session(String sid)
Method Detail |
public String getId()
public Stack getRequests()
getRequests().peek()
is the request that is
currently treated for this session.
public int getRequestCount()
public void newRequest(Request request)
request
- the request to pushgetCurrentRequest()
,
endCurrentRequest()
public Request getCurrentRequest()
getRequests().peek()
).
public Request getPreviousRequest()
public Request endCurrentRequest()
getRequests().pop()
).
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |