public class WicketBasicSessionAdapter<S extends BasicSession<U,?>,U extends User> extends Object implements UserSessionAdapter<javax.servlet.http.HttpServletRequest,S,U>
UserSessionAdapter
Constructor and Description |
---|
WicketBasicSessionAdapter() |
Modifier and Type | Method and Description |
---|---|
Object |
getObjectFromSession(S session,
String sessionPropertyName)
Get an Object from the Session
|
String |
getOrigin(S session,
javax.servlet.http.HttpServletRequest request)
Source the request/session
|
String |
getSessionId(S session)
Get the web session id for the Session object
|
U |
getUser(S session)
Get User for Session
|
String |
getUserId(S session)
Get the userid for the given Session
|
void |
setObjectToSession(S session,
String sessionPropertyName,
Object o)
Set Object into the Session
|
public final String getSessionId(S session)
UserSessionAdapter
getSessionId
in interface UserSessionAdapter<javax.servlet.http.HttpServletRequest,S extends BasicSession<U,?>,U extends User>
public final String getUserId(S session)
UserSessionAdapter
getUserId
in interface UserSessionAdapter<javax.servlet.http.HttpServletRequest,S extends BasicSession<U,?>,U extends User>
public String getOrigin(S session, javax.servlet.http.HttpServletRequest request)
UserSessionAdapter
getOrigin
in interface UserSessionAdapter<javax.servlet.http.HttpServletRequest,S extends BasicSession<U,?>,U extends User>
public void setObjectToSession(S session, String sessionPropertyName, Object o)
UserSessionAdapter
setObjectToSession
in interface UserSessionAdapter<javax.servlet.http.HttpServletRequest,S extends BasicSession<U,?>,U extends User>
public Object getObjectFromSession(S session, String sessionPropertyName)
UserSessionAdapter
getObjectFromSession
in interface UserSessionAdapter<javax.servlet.http.HttpServletRequest,S extends BasicSession<U,?>,U extends User>
public U getUser(S session)
UserSessionAdapter
getUser
in interface UserSessionAdapter<javax.servlet.http.HttpServletRequest,S extends BasicSession<U,?>,U extends User>
Copyright © 2018. All rights reserved.