org.nakedobjects.webapp
Class NakedObjectsSessionFilter

java.lang.Object
  extended by org.nakedobjects.webapp.NakedObjectsSessionFilter
All Implemented Interfaces:
javax.servlet.Filter

public class NakedObjectsSessionFilter
extends java.lang.Object
implements javax.servlet.Filter


Field Summary
static java.lang.String AUTHENTICATION_SESSION_LOOKUP_STRATEGY_DEFAULT
          Default value for AUTHENTICATION_SESSION_LOOKUP_STRATEGY_KEY if not specified.
static java.lang.String AUTHENTICATION_SESSION_LOOKUP_STRATEGY_KEY
          Init parameter key to lookup implementation of AuthenticationSessionLookupStrategy.
static java.lang.String LOGON_PAGE_KEY
          Init parameter key for (typically, a logon) page to redirect to if the AuthenticationSession cannot be found or is invalid.
 
Constructor Summary
NakedObjectsSessionFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTHENTICATION_SESSION_LOOKUP_STRATEGY_KEY

public static final java.lang.String AUTHENTICATION_SESSION_LOOKUP_STRATEGY_KEY
Init parameter key to lookup implementation of AuthenticationSessionLookupStrategy.

See Also:
Constant Field Values

AUTHENTICATION_SESSION_LOOKUP_STRATEGY_DEFAULT

public static final java.lang.String AUTHENTICATION_SESSION_LOOKUP_STRATEGY_DEFAULT
Default value for AUTHENTICATION_SESSION_LOOKUP_STRATEGY_KEY if not specified.


LOGON_PAGE_KEY

public static final java.lang.String LOGON_PAGE_KEY
Init parameter key for (typically, a logon) page to redirect to if the AuthenticationSession cannot be found or is invalid.

See Also:
Constant Field Values
Constructor Detail

NakedObjectsSessionFilter

public NakedObjectsSessionFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException


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