jakarta.servlet.Filter , jakarta.servlet.FilterConfig
| Modifier and Type | Field and Description |
|---|---|
| private volatile FilterConfig | filterConfig
The filter configuration. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FilterConfig | Returns: The config previously passed to theinit(FilterConfig) methodObtain the FilterConfig used to initialise this Filter instance. |
| public String | |
| public String | getInitParameter(String
String specifying the name of the initialization parameterImplements jakarta. Returns a |
| public Enumeration | getInitParameterNames()
Implements jakarta. Returns the names of the filter's initialization parameters as an |
| public ServletContext | getServletContext()
Implements jakarta. Returns a reference to the |
| public void | init(FilterConfig
The configuration information associated with the filter instance being initialised filterConfig)Overrides default jakarta. Called by the web container to indicate to a filter that it is being placed into service. |
| public void |
| filterConfig | back to summary |
|---|---|
| private volatile FilterConfig filterConfig The filter configuration. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| GenericFilter | back to summary |
|---|---|
| public GenericFilter() | |
| getFilterConfig | back to summary |
|---|---|
| public FilterConfig getFilterConfig() Obtain the FilterConfig used to initialise this Filter instance.
| |
| getFilterName | back to summary |
|---|---|
| public String getFilterName() Implements jakarta. Doc from jakarta. Get the name of the filter. | |
| getInitParameter | back to summary |
|---|---|
| public String getInitParameter(String name) Implements jakarta. Doc from jakarta. Returns a | |
| getInitParameterNames | back to summary |
|---|---|
| public Enumeration Implements jakarta. Doc from jakarta. Returns the names of the filter's initialization parameters as an
| |
| getServletContext | back to summary |
|---|---|
| public ServletContext getServletContext() Implements jakarta. Doc from jakarta. Returns a reference to the
| |
| init | back to summary |
|---|---|
| public void init(FilterConfig filterConfig) throws ServletException Overrides default jakarta. Doc from jakarta. Called by the web container to indicate to a filter that it is being placed into service. The servlet container calls the init method exactly once after instantiating the filter. The init method must complete successfully before the filter is asked to do any filtering work. The web container cannot place the filter into service if the init method either:
| |
| init | back to summary |
|---|---|
| public void init() throws ServletException Convenience method for sub-classes to save them having to call
| |