public class ServletFilterWrapper extends Object
Filter
.
ServletFilterWrapper
are used to filter requests from inside the application, instead of inside the servlet engine.Constructor and Description |
---|
ServletFilterWrapper(Filter filter)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the filter.
|
void |
doFilter(Map objectModel,
Redirector redirect)
Applies the filter.
|
void |
init(Map<String,String> parameters,
ServletContext servletContext)
Enables to init config parameters using a FilterConfig.
|
public ServletFilterWrapper(Filter filter)
filter
- A filter to applypublic void init(Map<String,String> parameters, ServletContext servletContext) throws ServletException
parameters
- a map containing all filter parameters.servletContext
- the servlet context.ServletException
- if the underlying Filter fails to initialize.public void doFilter(Map objectModel, Redirector redirect) throws ServletException, IOException
objectModel
- the Cocoon's object model.redirect
- the Cocoon's redirector.ServletException
- if the underlying Filter fails to process the request.IOException
- if the underlying Filter fails to process the request.public void destroy()