Keel 2.1RC2

org.keel.apps.register.models
Class VerifyLogin

java.lang.Object
  extended byorg.keel.services.model.StandardModel
      extended byorg.keel.services.model.StandardLogEnabledModel
          extended byorg.keel.apps.register.models.LoginBase
              extended byorg.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

Field Summary
 
Fields inherited from class org.keel.apps.register.models.LoginBase
svcConfig
 
Fields inherited from class org.keel.services.model.StandardLogEnabledModel
log
 
Fields inherited from class org.keel.services.model.StandardModel
configuration
 
Fields inherited from interface org.keel.services.model.Model
ROLE
 
Constructor Summary
VerifyLogin()
           
 
Method Summary
private  void addHeaders(ModelRequest req, ModelResponse res)
           
private  boolean alreadyLoggedIn(ModelRequest req, ModelResponse res)
           
 ModelResponse execute(ModelRequest req)
           
private  boolean tryLoginViaCookie(ModelRequest req, ModelResponse res)
          See if we can log in via stored cookies passed from the user's browser
 
Methods inherited from class org.keel.apps.register.models.LoginBase
configure, createLoginInfoOutput, decodeWithSeq, encodeWithSeq, getCookieName, getCryptSeq, getDomainCookieName, getLoginCookieName, getPasswordCookieName
 
Methods inherited from class org.keel.services.model.StandardLogEnabledModel
enableLogging
 
Methods inherited from class org.keel.services.model.StandardModel
getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifyLogin

public VerifyLogin()
Method Detail

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

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.