|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.login.LoginHandler
public class LoginHandler
An object which sets up the login process.
Field Summary | |
---|---|
protected TemplateServlet |
servlet
|
Constructor Summary | |
---|---|
LoginHandler(TemplateServlet servlet)
Constructor. |
Method Summary | |
---|---|
String |
doTemplateRequest(Melati melati,
ServletTemplateContext templateContext)
Action the login. |
protected String |
loginPageTemplate()
|
String |
loginSuccessfullyAs(Melati melati,
ServletTemplateContext templateContext,
User user)
Set cookies if requested, remove any leftovers from any triggering AccessPoemException . |
protected String |
loginSuccessTemplate()
|
protected String |
loginTemplate(String name)
|
protected String |
passwordIncorrectTemplate()
|
void |
setupContext(ServletTemplateContext context)
Extract current values from context and add fields to context. |
protected String |
usernameUnknownTemplate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TemplateServlet servlet
Constructor Detail |
---|
public LoginHandler(TemplateServlet servlet)
servlet
- to setMethod Detail |
---|
protected String loginTemplate(String name)
protected String loginPageTemplate()
protected String usernameUnknownTemplate()
protected String passwordIncorrectTemplate()
protected String loginSuccessTemplate()
public void setupContext(ServletTemplateContext context)
context
- the ServletTemplateContext to modifypublic String loginSuccessfullyAs(Melati melati, ServletTemplateContext templateContext, User user)
AccessPoemException
.
melati
- the melatitemplateContext
- context to augmentuser
- the established User
public String doTemplateRequest(Melati melati, ServletTemplateContext templateContext) throws Exception
melati
- the MelatitemplateContext
-
Exception
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |