|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.usermgmt.SessionHelper
Field Summary | |
static java.lang.String |
PROFILE_WRAPPER
constant to look up the current profile wrapper |
Constructor Summary | |
SessionHelper()
|
Method Summary | |
static ProfileWrapper |
getProfile(javax.servlet.http.HttpServletRequest req)
Get the current profile from either the session or the request. |
static ProfileWrapper |
getProfile(javax.servlet.http.HttpSession session)
Get the current profile from the session |
static java.lang.String |
getUserId(javax.servlet.http.HttpServletRequest req)
Get the logged in user's id from the request. |
static void |
putProfileInRequest(javax.servlet.http.HttpServletRequest req,
ProfileWrapper profile)
Put a profile in the request. |
static void |
putProfileInSession(javax.servlet.http.HttpServletRequest req,
ProfileWrapper profile)
Put a profile in the session. |
static void |
putProfileInSession(javax.servlet.http.HttpSession session,
ProfileWrapper profile)
Put a profile in the session. |
static void |
removeProfile(javax.servlet.http.HttpServletRequest req)
Removes profile wrapper references from both the request and the session. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String PROFILE_WRAPPER
Constructor Detail |
public SessionHelper()
Method Detail |
public static ProfileWrapper getProfile(javax.servlet.http.HttpServletRequest req)
public static ProfileWrapper getProfile(javax.servlet.http.HttpSession session)
public static void removeProfile(javax.servlet.http.HttpServletRequest req)
public static void putProfileInSession(javax.servlet.http.HttpServletRequest req, ProfileWrapper profile)
public static void putProfileInSession(javax.servlet.http.HttpSession session, ProfileWrapper profile)
public static void putProfileInRequest(javax.servlet.http.HttpServletRequest req, ProfileWrapper profile)
public static java.lang.String getUserId(javax.servlet.http.HttpServletRequest req)
This checks for the user principal on the request.
req
- the servlet request.
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |