|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTTPSessionManager
This interface defines simple session handling interface. It defines a
factory that keeps track of sessions. This interface adds new utility
method that obtains session id from HTTPConnection
. Also,
it adds method to rewrite URLs if needed.
Method Summary | |
---|---|
Object |
findSession(HTTPConnection connection,
boolean create)
Finds existing session or creates new one if there is no existing session and create parameter is set to true . |
void |
removeSession(HTTPConnection connection)
Removes session from connection |
String |
rewriteURL(HTTPConnection connection,
String url)
This method should take care session ids kept in the url. |
Methods inherited from interface org.abstracthorizon.danube.session.SessionManager |
---|
findSession, removeSession |
Method Detail |
---|
Object findSession(HTTPConnection connection, boolean create)
true
. This method should
call SessionManager.findSession(Object, boolean)
when session id is found.
connection
- http connection for session id to be extracted fromcreate
- should new session be created if there is no existing session
true
or null
otherwise.String rewriteURL(HTTPConnection connection, String url)
connection
- http connection objecturl
- url to be updated
void removeSession(HTTPConnection connection)
connection
- connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |