@ThreadSafe public final class VSession extends WebSession implements ServiceSession
| Modifier and Type | Class and Description |
|---|---|
static class |
VSession.User
An authenticated Wicket user.
|
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
URI_STRIP_PATTERN
Pattern to strip from an HTTP URI the mangling that occurs temporarily for new
sessions.
|
clientInfo, SESSION_ATTRIBUTE_NAME| Constructor and Description |
|---|
VSession(WebRequest request,
WebResponse _response,
VOWicket app)
Creates a VSession.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearUser(VRequestCycle cycle)
Clears the authenticated user.
|
static VSession |
get()
Returns the session associated with the current thread.
|
(package private) NavBar.SessionScope |
scopeNavBar()
The session scope for instances of NavBar.
|
WP_OpenIDReturn.SessionScope |
scopeOpenIDReturn()
The session scope for instances of WP_OpenIDReturn, or null if the authenticator is not OpenIDAuthenticator.
|
WP_Poll.SessionScope |
scopePoll()
The session scope for instances of WP_Poll.
|
VoterPage.SessionScope |
scopeVoterPage()
The session scope for instances of VoterPage.
|
void |
setUser(IDPair id,
boolean persistent,
TraceNode traceNode,
VRequestCycle cycle)
Sets the authenticated user.
|
static String |
uriStripped(String uriString)
Returns the stripped version of the HTTP URI string if it matches URI_STRIP_PATTERN; otherwise the original string.
|
VSession.User |
user()
The authenticated user, or null if the user is unauthenticated.
|
VSession.User |
userOrNobody()
The authenticated user, or NOBODY if the user is
unauthenticated.
|
VOWicket |
vApplication() |
authenticate, cleanupComponentFeedbackMessages, cleanupFeedbackMessages, getClientInfo, invalidate, newBrowserInfoPagebind, 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, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warnpublic static final Pattern URI_STRIP_PATTERN
VSession(WebRequest request, WebResponse _response, VOWicket app)
NavBar.SessionScope scopeNavBar()
public WP_OpenIDReturn.SessionScope scopeOpenIDReturn()
public WP_Poll.SessionScope scopePoll()
public VoterPage.SessionScope scopeVoterPage()
public static final String uriStripped(String uriString)
public VOWicket vApplication()
Session.getApplication()public VSession.User user()
ServiceSessionuser in interface ServiceSessionpublic void setUser(IDPair id, boolean persistent, TraceNode traceNode, VRequestCycle cycle)
NullPointerException - if 'id' is null.VSession.User.isPersistent(),
VSession.User.traceNode(),
clearUser(VRequestCycle)public void clearUser(VRequestCycle cycle)
public VSession.User userOrNobody()
ServiceSessionuserOrNobody in interface ServiceSessionpublic static VSession get()
component.getSession() is no
longer faster than this method.Session.get()