org.apache.cactus.server
Class FilterTestRedirector
java.lang.Object
|
+--org.apache.cactus.server.FilterTestRedirector
- All Implemented Interfaces:
- javax.servlet.Filter
- public class FilterTestRedirector
- extends java.lang.Object
- implements javax.servlet.Filter
Generic Filter redirector that calls a test method on the server side.
- Version:
- $Id: FilterTestRedirector.java,v 1.3 2001/09/16 11:17:56 vmassol Exp $
- Author:
- Vincent Massol
- See Also:
FilterTestCaller
Method Summary |
void |
destroy()
Destroy the filter. |
void |
doFilter(javax.servlet.ServletRequest theRequest,
javax.servlet.ServletResponse theResponse,
javax.servlet.FilterChain theFilterChain)
Handle the request. |
javax.servlet.FilterConfig |
getFilterConfig()
Provided so that it works with containers that do not support the
latest Filter spec yet ! |
void |
init(javax.servlet.FilterConfig theConfig)
Initialise this filter redirector. |
void |
setFilterConfig(javax.servlet.FilterConfig theConfig)
Provided so that it works with containers that do not support the
latest Filter spec yet ! |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterTestRedirector
public FilterTestRedirector()
doFilter
public void doFilter(javax.servlet.ServletRequest theRequest,
javax.servlet.ServletResponse theResponse,
javax.servlet.FilterChain theFilterChain)
throws java.io.IOException,
javax.servlet.ServletException
- Handle the request. Extract from the HTTP request paramete the
Service to perform : call test method or return tests results.
- Specified by:
doFilter
in interface javax.servlet.Filter
- Parameters:
theRequest
- the incoming HTTP request which contains all needed
information on the test case and method to calltheResponse
- the response to send back to the client sidetheFilterChain
- contains the chain of filters.
init
public void init(javax.servlet.FilterConfig theConfig)
- Initialise this filter redirector. Called by the container.
- Specified by:
init
in interface javax.servlet.Filter
- Parameters:
theConfig
- the filter config containing initialisation
parameters from web.xml
setFilterConfig
public void setFilterConfig(javax.servlet.FilterConfig theConfig)
- Provided so that it works with containers that do not support the
latest Filter spec yet ! (ex: Orion 1.5.2 !)
getFilterConfig
public javax.servlet.FilterConfig getFilterConfig()
- Provided so that it works with containers that do not support the
latest Filter spec yet ! (ex: Orion 1.5.2 !)
destroy
public void destroy()
- Destroy the filter. Called by the container.
- Specified by:
destroy
in interface javax.servlet.Filter
Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.