org.nakedobjects.webapp.auth
Class AuthenticationSessionLookupStrategyDefault

java.lang.Object
  extended by org.nakedobjects.webapp.auth.AuthenticationSessionLookupStrategyAbstract
      extended by org.nakedobjects.webapp.auth.AuthenticationSessionLookupStrategyDefault
All Implemented Interfaces:
AuthenticationSessionLookupStrategy

public class AuthenticationSessionLookupStrategyDefault
extends AuthenticationSessionLookupStrategyAbstract

Looks up from the HttpSession, failing that attempts to logon using a LogonFixture (if available and not already used) or in exploration mode.

The AuthenticationSession is looked up from the HttpSession using the value . Because we only want to use the LogonFixture once, the HttpSession also stores the value once a logon has occurred implicitly.


Constructor Summary
AuthenticationSessionLookupStrategyDefault()
           
 
Method Summary
 void bind(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, AuthenticationSession authSession)
           
 AuthenticationSession lookup(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
           
 
Methods inherited from class org.nakedobjects.webapp.auth.AuthenticationSessionLookupStrategyAbstract
getHttpSession, getServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationSessionLookupStrategyDefault

public AuthenticationSessionLookupStrategyDefault()
Method Detail

lookup

public AuthenticationSession lookup(javax.servlet.ServletRequest servletRequest,
                                    javax.servlet.ServletResponse servletResponse)

bind

public void bind(javax.servlet.ServletRequest servletRequest,
                 javax.servlet.ServletResponse servletResponse,
                 AuthenticationSession authSession)


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.