|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.roscopeco.janno.util.FilterWrapper
public class FilterWrapper
Utility class that allows Filter implementations registered in
the tree to be mapped into web.xml. This is a simple
class that just obtains the servlet implementation registered in the named
context with the specified key. This information is supplied in context
parameters:
Filter implementation is registered.ServletWrapper.
| Constructor Summary | |
|---|---|
FilterWrapper()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Calls the delegate's destroy method and performs wrapper cleanup. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
Passes the request and response to the delegate's doFilter
method. |
ServletContext |
getServletContext()
|
void |
init(FilterConfig config)
Initializes the wrapper, obtains the delegate instance, and passes the call through it it's init(FilterConfig) method, after
which point initialization continues in the regular Servlets manner. |
org.apache.commons.logging.Log |
log()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilterWrapper()
| Method Detail |
|---|
public void init(FilterConfig config)
throws ServletException
init(FilterConfig) method, after
which point initialization continues in the regular Servlets manner.
init in interface FilterServletException
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
doFilter
method. Note that this doesn't do the usual filter chain stuff,
relying on the delegate to invoke the next filter and what not. This behaviour
ensures transparent compatibility when using wrapped filters.
doFilter in interface FilterIOException
ServletExceptionpublic void destroy()
destroy in interface Filterpublic org.apache.commons.logging.Log log()
public ServletContext getServletContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||