|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for obtaining sessions from the session manager.
Different strategies may obtain sessions in different ways. For example, one might create a new session while another retrieves an existing session.
A SessionStrategy
implementation should also take
necessary measures to ensure that the session ends at the
appropriate point, such as after a certain time has passed.
Method Summary | |
InternalSession |
obtainSession(SessionManager manager)
Uses the session manager to create a new session or access an existing session, depending on the session requirements built into the strategy. |
Method Detail |
public InternalSession obtainSession(SessionManager manager) throws SessionCreationException, SessionLookupException, SessionNotFoundException
An implementation of this method should also take necessary measures to ensure that the session ends at the appropriate point, such as after a certain time has passed.
manager
- The SessionManagement
to use for interactions.
SessionAccess
object to the session thus
obtained.
SessionCreationException
- if some problem arises when
creating a new session.
SessionLookupException
- if some problem arises when
accessing an existing session.
SessionNotFoundException
- if a specific named session
does not exist.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |