public class FilterTestRedirector
extends java.lang.Object
implements javax.servlet.Filter
FilterTestCaller
Constructor and Description |
---|
FilterTestRedirector() |
Modifier and Type | Method and Description |
---|---|
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 (ex: Orion 1.5.2)
|
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 (ex: Orion 1.5.2)
|
public void doFilter(javax.servlet.ServletRequest theRequest, javax.servlet.ServletResponse theResponse, javax.servlet.FilterChain theFilterChain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
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.java.io.IOException
- if an error occurred during test on server sidejavax.servlet.ServletException
- if an error occurred during test on server
sidepublic void init(javax.servlet.FilterConfig theConfig)
init
in interface javax.servlet.Filter
theConfig
- the filter config containing initialisation
parameters from web.xmlpublic void setFilterConfig(javax.servlet.FilterConfig theConfig)
theConfig
- the Filter Configpublic javax.servlet.FilterConfig getFilterConfig()
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.