org.keel.apps.register.models
Class VerifyLogin
java.lang.Object
org.keel.services.model.StandardModel
org.keel.services.model.StandardLogEnabledModel
org.keel.apps.register.models.LoginBase
org.keel.apps.register.models.VerifyLogin
- All Implemented Interfaces:
- Configurable, LogEnabled, Model
- public class VerifyLogin
- extends LoginBase
Special derivative of Login used to verify an existing login (by checking the context) and if none is found, attempting to create a login context from the cookies (if any) provided by the UI. If neither of these works, redirect to login. If we're able to log in via cookie or are already logged in, just return an empty response (with no errors)
- Version:
- $Revision: 1.15 $ $Date: 2004/03/10 04:05:13 $
- Author:
- Mike Nash, Shash Chatterjee Created on Jun 8, 2003
| Fields inherited from interface org.keel.services.model.Model |
ROLE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerifyLogin
public VerifyLogin()
execute
public ModelResponse execute(ModelRequest req)
throws ModelException
-
- Throws:
ModelException
addHeaders
private void addHeaders(ModelRequest req,
ModelResponse res)
throws ModelException
-
- Throws:
ModelException
alreadyLoggedIn
private boolean alreadyLoggedIn(ModelRequest req,
ModelResponse res)
throws ModelException
-
- Throws:
ModelException
tryLoginViaCookie
private boolean tryLoginViaCookie(ModelRequest req,
ModelResponse res)
throws ModelException
-
See if we can log in via stored cookies passed from the user's browser
-
- Parameters:
req -
res -
- Returns:
- Throws:
ModelException
Please see keelframework.org for information about new Keel releases.