- All Superinterfaces:
jakarta.servlet.FilterConfig
,jakarta.servlet.FilterRegistration
,jakarta.servlet.FilterRegistration.Dynamic
,jakarta.servlet.Registration
,jakarta.servlet.Registration.Dynamic
- All Known Implementing Classes:
DefaultFilterEnvironment
public interface FilterEnvironment
extends jakarta.servlet.FilterRegistration.Dynamic, jakarta.servlet.FilterConfig
The environment of a Filter.
- Author:
- Manfred Riem ([email protected]), Arjan Tijms
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.servlet.FilterRegistration
jakarta.servlet.FilterRegistration.Dynamic
Nested classes/interfaces inherited from interface jakarta.servlet.Registration
jakarta.servlet.Registration.Dynamic
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.Filter
Returns the filter.Returns the web application.void
Initialize the filter.boolean
Is async supported.void
setClassName
(String className) Set the class name.void
setFilterName
(String filterName) Set the filter name.void
setStatus
(int status) Set status.void
setWebApplication
(WebApplication webApplication) Set the web application.Methods inherited from interface jakarta.servlet.FilterConfig
getFilterName, getInitParameter, getInitParameterNames, getServletContext
Methods inherited from interface jakarta.servlet.FilterRegistration
addMappingForServletNames, addMappingForUrlPatterns, getServletNameMappings, getUrlPatternMappings
Methods inherited from interface jakarta.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
Methods inherited from interface jakarta.servlet.Registration.Dynamic
setAsyncSupported
-
Field Details
-
UNAVAILABLE
static final int UNAVAILABLEDefines the UNAVAILABLE constant.- See Also:
-
-
Method Details
-
getFilter
jakarta.servlet.Filter getFilter()Returns the filter.- Returns:
- the filter
-
initialize
void initialize() throws jakarta.servlet.ServletExceptionInitialize the filter.- Throws:
jakarta.servlet.ServletException
- when a servlet error occurs.
-
setClassName
Set the class name.- Parameters:
className
- the class name.
-
setFilterName
Set the filter name.- Parameters:
filterName
- the filter name.
-
setStatus
void setStatus(int status) Set status.- Parameters:
status
- the status.
-
getWebApplication
WebApplication getWebApplication()Returns the web application.- Returns:
- the web application
-
setWebApplication
Set the web application.- Parameters:
webApplication
- the web application.
-
isAsyncSupported
boolean isAsyncSupported()Is async supported.- Returns:
- true if it is, false otherwise.
-