|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISessionStore
The actual store that is used by Session to store its attributes.
| Method Summary | |
|---|---|
void |
bind(Request request,
Session newSession)
Adds the provided new session to this facade using the provided request. |
IPageMap |
createPageMap(java.lang.String name)
|
void |
destroy()
Called when the WebApplication is destroyed. |
java.lang.Object |
getAttribute(Request request,
java.lang.String name)
Gets the attribute value with the given name |
java.util.List<java.lang.String> |
getAttributeNames(Request request)
|
java.lang.String |
getSessionId(Request request,
boolean create)
Get the session id for the provided request. |
void |
invalidate(Request request)
Invalidates the session. |
Session |
lookup(Request request)
Retrieves the session for the provided request from this facade. |
IPageVersionManager |
newVersionManager(Page page)
|
void |
onBeginRequest(Request request)
Called at the start of a request. |
void |
onEndRequest(Request request)
Called at the end of a request. |
void |
removeAttribute(Request request,
java.lang.String name)
Removes the attribute with the given name. |
void |
setAttribute(Request request,
java.lang.String name,
java.lang.Object value)
Adds or replaces the attribute with the given name and value. |
void |
unbind(java.lang.String sessionId)
Removes a session from this facade |
| Method Detail |
|---|
java.lang.Object getAttribute(Request request,
java.lang.String name)
request - the current requestname - The name of the attribute to store
java.util.List<java.lang.String> getAttributeNames(Request request)
request - the current request
void invalidate(Request request)
request - the current request
void removeAttribute(Request request,
java.lang.String name)
request - the current requestname - the name of the attribute to remove
void setAttribute(Request request,
java.lang.String name,
java.lang.Object value)
request - the current requestname - the name of the attributevalue - the value of the attribute
java.lang.String getSessionId(Request request,
boolean create)
request - The requestcreate - Whether to create an actual session (typically an instance of HttpSession)
when not already done so
Session lookup(Request request)
This method should return null if it is not bound yet, so that Wicket can recognize that it
should create a session and call bind(Request, Session) right after that.
request - The current request
void bind(Request request,
Session newSession)
request - The request that triggered making a new sessionnewSession - The new sessionvoid unbind(java.lang.String sessionId)
sessionId - The id of the session that must be unbound.void onBeginRequest(Request request)
request - The request objectvoid onEndRequest(Request request)
request - The requestIPageMap createPageMap(java.lang.String name)
name -
IPageVersionManager newVersionManager(Page page)
page - The page for which this version manager must be created
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||