public interface Filter
| Modifier and Type | Interface and Description |
|---|---|
static class |
Filter.Dispatcher |
| Modifier and Type | Method and Description |
|---|---|
Filter.Dispatcher[] |
getDispatchers() |
javax.servlet.Filter |
getFilter()
Get the Servlet API filter.
|
Map<String,String> |
getInitParameters()
Get the parameters, which which the Filter will be initialized.
|
String |
getPath()
Get the path for, which the filter is triggered.
|
void |
setDispatchers(Filter.Dispatcher[] dispatchers) |
void |
setFilter(javax.servlet.Filter filter)
Set the Servlet API Filter.
|
void |
setInitParameters(Map<String,String> params)
Set the initial configuration of the Filter.
|
void |
setPath(String path)
Set the path for which the filter is triggered.
|
Filter.Dispatcher[] getDispatchers()
void setDispatchers(Filter.Dispatcher[] dispatchers)
dispatchers - should not have duplicates and nulls.String getPath()
void setPath(String path)
The path must follow the standard Servlet spec mapping patterns:
Request paths are tested against the mapping patterns in the standard order:
path - the pathjavax.servlet.Filter getFilter()
Filter object.void setFilter(javax.servlet.Filter filter)
filter - the Filter.Map<String,String> getInitParameters()
null if no
initial configuration is set.Copyright © 2023. All rights reserved.