|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.authentication.SilverpeasSessionOpener
public class SilverpeasSessionOpener
Service used to open an HTTP session in the Silverpeas platform.
It asks for a session opening to the session manager and then it creates all the required session resources for Silverpeas and stores them into the user session.
Constructor Summary | |
---|---|
SilverpeasSessionOpener()
|
Method Summary | |
---|---|
void |
closeSession(javax.servlet.http.HttpSession session)
Closes the specified session. |
protected String |
getAbsoluteUrl(HttpRequest request)
Computes the beginning of an absolute URL for the home page. |
protected String |
getErrorPageUrl(HttpRequest request,
String authKey)
The user wasn't yet authenticated then computes the error page. |
protected String |
getHomePageUrl(HttpRequest request,
String redirectURL)
The user was authenticated and its session in Silverpeas was opened successfully, then computes its home page. |
String |
openSession(HttpRequest request,
String authKey)
Opens a session in Silverpeas for the authenticated user behinds the specified HTTP request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SilverpeasSessionOpener()
Method Detail |
---|
public String openSession(HttpRequest request, String authKey)
request
- the HTTP request asking a session opening.authKey
- the authentication key computed from a user authentication process and that is
unique to the user.
public void closeSession(javax.servlet.http.HttpSession session)
session
- the HTTP session to close.protected String getErrorPageUrl(HttpRequest request, String authKey)
request
- the HTTP request asking a session opening.authKey
- the authentication key computed from a user authentication process and that is
unique to the user.
protected String getHomePageUrl(HttpRequest request, String redirectURL)
request
- the HTTP request asking a session opening.redirectURL
- a redirection URL.
protected String getAbsoluteUrl(HttpRequest request)
request
- the HTTP request asking for a session opening.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |