|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 String |
OVERLAY_PARAMETERS
Class name. |
static 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 String |
loginPageServletClassName()
The class name of the class implementing the login servlet. |
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 String OVERLAY_PARAMETERS
public static final String USER
Constructor Detail |
---|
public HttpSessionAccessHandler()
Method Detail |
---|
protected String loginPageServletClassName()
Login
public 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 Exception
handleAccessException
in interface AccessHandler
melati
- current MelatiaccessException
- the AccessException
Exception
AccessHandler.handleAccessException(org.melati.Melati, org.melati.poem.AccessPoemException)
public Melati establishUser(Melati melati)
establishUser
in interface AccessHandler
Melati
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 setpublic void buildRequest(Melati melati) throws ReconstructedHttpServletRequestMismatchException
buildRequest
in interface AccessHandler
melati
- used to hold original request
ReconstructedHttpServletRequestMismatchException
AccessHandler.buildRequest(org.melati.Melati)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |