no.sesat.search.http.filters
Class UserFilter

java.lang.Object
  extended by no.sesat.search.http.filters.UserFilter
All Implemented Interfaces:
Filter

public final class UserFilter
extends Object
implements Filter

Responsible for Persistent User Login. Or "Remember Me" functionality. Based off http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice The user's manual logging in with username and password must be performed in a separate application that fronts to UserService.

Version:
$Id: UserFilter.java 7225 2009-04-09 00:32:20Z ssmiweve $

Constructor Summary
UserFilter()
          Default constructor.
 
Method Summary
 void destroy()
          Destroy method for this filter.
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          The filter action method.
 void init(FilterConfig filterConfig)
          Init method for this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserFilter

public UserFilter()
Default constructor.

Method Detail

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
The filter action method.

Specified by:
doFilter in interface Filter
Parameters:
request - The servlet request we are processing
response - The servlet response for the request
chain - The filter chain we are processing
Throws:
IOException - Thrown if an input/output error occurs
ServletException - Thrown if a servlet error occurs

destroy

public void destroy()
Destroy method for this filter.

Specified by:
destroy in interface Filter

init

public void init(FilterConfig filterConfig)
Init method for this filter.

Specified by:
init in interface Filter
Parameters:
filterConfig - the filter configuration


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.