|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Session
org.apache.wicket.protocol.http.WebSession
public class WebSession
A session subclass for the HTTP protocol.
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.Session |
|---|
clientInfo, SESSION_ATTRIBUTE_NAME |
| Constructor Summary | |
|---|---|
WebSession(Request request)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
authenticate(String username,
String password)
Note: You must subclass WebSession and implement your own. |
protected void |
cleanupComponentFeedbackMessages()
Clear all feedback messages |
void |
cleanupFeedbackMessages()
Cleans up all rendered feedback messages and any unrendered, dangling feedback messages there may be left after that. |
static WebSession |
get()
|
WebClientInfo |
getClientInfo()
Gets the client info object for this session. To gather the client information this implementation redirects temporarily to a special page ( BrowserInfoPage). |
void |
invalidate()
Call signOut() and remove the logon data from whereever they have been persisted (e.g. |
protected WebPage |
newBrowserInfoPage()
Override this method if you want to use a custom page for gathering the client's browser information. |
| Methods inherited from class org.apache.wicket.Session |
|---|
bind, clear, debug, detach, dirty, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isCurrentRequestValid, isSessionInvalidated, isTemporary, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebSession(Request request)
RequestCycle is not available until this constructor returns.
request - The current request| Method Detail |
|---|
public static WebSession get()
public void cleanupFeedbackMessages()
Session
cleanupFeedbackMessages in class SessionSession.cleanupFeedbackMessages()protected void cleanupComponentFeedbackMessages()
public void invalidate()
invalidate in class SessionSession.invalidate()
public boolean authenticate(String username,
String password)
username - The usernamepassword - The password
public WebClientInfo getClientInfo()
Session.setClientInfo(ClientInfo))
client info object.
To gather the client information this implementation redirects temporarily to a special page
(BrowserInfoPage).
Note: Do not call this method from your custom Session constructor
because the temporary page needs a constructed Session to be able to work.
If you need to set a default client info property then better use
Session.setClientInfo(org.apache.wicket.request.ClientInfo) directly.
getClientInfo in class Sessionprotected WebPage newBrowserInfoPage()
BrowserInfoPage and provide your own markup file
WebPage which should be used while gathering browser info
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||