|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.melati.login.HttpSessionAccessHandler
public class HttpSessionAccessHandler
An AccessHandler which uses Session cookies to
elicit and maintain the user's login and password.
| Field Summary | |
|---|---|
static java.lang.String |
OVERLAY_PARAMETERS
Class name. |
static java.lang.String |
USER
Class name. |
| Constructor Summary | |
|---|---|
HttpSessionAccessHandler()
|
|
| Method Summary | |
|---|---|
void |
buildRequest(Melati melati)
If we are returning from a login rebuild the original request, otherwise do nothing. |
Melati |
establishUser(Melati melati)
Set the Access token to be used for this request. |
void |
handleAccessException(Melati melati,
AccessPoemException accessException)
Store the current request and redirect to the login page. |
protected java.lang.String |
loginPageServletClassName()
The class name of the class implementing the login servlet. |
java.lang.String |
loginPageURL(Melati melati,
javax.servlet.http.HttpServletRequest request)
The URL of the login servlet. |
protected void |
logUsIn(Melati melati,
User user)
Set our AccessToken. |
| 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 OVERLAY_PARAMETERS
public static final java.lang.String USER
| Constructor Detail |
|---|
public HttpSessionAccessHandler()
| Method Detail |
|---|
protected java.lang.String loginPageServletClassName()
Login
public java.lang.String loginPageURL(Melati melati,
javax.servlet.http.HttpServletRequest request)
loginPageServletClassName() into the URL of the
request being serviced.
melati - the current Melatirequest - the request currently being serviced
loginPageServletClassName()
public void handleAccessException(Melati melati,
AccessPoemException accessException)
throws java.lang.Exception
handleAccessException in interface AccessHandlermelati - current MelatiaccessException - teh AccessException
java.lang.ExceptionAccessHandler.handleAccessException(org.melati.Melati, org.melati.poem.AccessPoemException)public Melati establishUser(Melati melati)
establishUser in interface AccessHandlerMelati with the appropriate fields filled.AccessHandler.establishUser(org.melati.Melati)
protected void logUsIn(Melati melati,
User user)
melati - the Melati to get our database fromuser - the token to set
public void buildRequest(Melati melati)
throws ReconstructedHttpServletRequestMismatchException
buildRequest in interface AccessHandlermelati - used to hold original request
ReconstructedHttpServletRequestMismatchExceptionAccessHandler.buildRequest(org.melati.Melati)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||