org.eclipse.higgins.rp.servlet.server
Class LoginFilter
java.lang.Object
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.
|
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain fChain)
|
void |
init(javax.servlet.FilterConfig fConfig)
|
LoginFilter
public LoginFilter()
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