|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cactus.server.FilterTestRedirector
public class FilterTestRedirector
Generic Filter redirector that calls a test method on the server side.
FilterTestCaller
Constructor Summary | |
---|---|
FilterTestRedirector()
|
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 (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) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterTestRedirector()
Method Detail |
---|
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 side
javax.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |