|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
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 |
public java.lang.Object getAttribute(Request request,
java.lang.String name)
request - the current requestname - The name of the attribute to store
public java.util.List getAttributeNames(Request request)
request - the current request
public void invalidate(Request request)
request - the current request
public void removeAttribute(Request request,
java.lang.String name)
request - the current requestname - the name of the attribute to remove
public 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
public 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
public 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
public void bind(Request request,
Session newSession)
request - The request that triggered making a new sessionnewSession - The new sessionpublic void unbind(java.lang.String sessionId)
sessionId - The id of the session that must be unbound.public void onBeginRequest(Request request)
request - The request objectpublic void onEndRequest(Request request)
request - The requestpublic IPageMap createPageMap(java.lang.String name)
name -
public IPageVersionManager newVersionManager(Page page)
page - The page for which this version manager must be created
public void destroy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||