org.eclipse.higgins.rp.servlet.server
Class LoginFilter

java.lang.Object
  extended by org.eclipse.higgins.rp.servlet.server.LoginFilter
All Implemented Interfaces:
javax.servlet.Filter

public class LoginFilter
extends Object
implements javax.servlet.Filter

Login filter The login filter is specified in the web.xml file for the application and must be defined as a filter for the login jsp file that is defined in the properties file for the protocol handler. On GET the filter will get the context params set them as attributes to the request for the login jsp. On POST the filter calls the authenticate method of the protocol handler to continue processing the authentication. The authentication method of the protocol handler keeps track of authentication state and knows when to transition between states.


Constructor Summary
LoginFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain fChain)
           
 void init(javax.servlet.FilterConfig fConfig)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginFilter

public LoginFilter()
Method Detail

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 fChain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException

init

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