Annotation Interface ServletFilterBean
Variant of
WebFilter
applicable to factory methods.-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Declares whether the filter supports asynchronous operation mode.jakarta.servlet.DispatcherType[]
The dispatcher types to which the filter applies.String[]
The names of the servlets to which the filter applies.String[]
The URL patterns to which the filter applies.String[]
The URL patterns to which the filter applies The default value is an empty array.
-
Element Details
-
filterName
@AliasFor(annotation=jakarta.servlet.annotation.WebFilter.class, member="filterName") String filterNameThe name of the filter.- Returns:
- the name of the filter
-
-
-
servletNames
@AliasFor(annotation=jakarta.servlet.annotation.WebFilter.class, member="servletNames") String[] servletNamesThe names of the servlets to which the filter applies.- Returns:
- the names of the servlets to which the filter applies
- Default:
- {}
-
value
The URL patterns to which the filter applies The default value is an empty array.- Returns:
- the URL patterns to which the filter applies
- Default:
- {}
-
urlPatterns
@AliasFor(annotation=jakarta.servlet.annotation.WebFilter.class, member="value") String[] urlPatternsThe URL patterns to which the filter applies.- Returns:
- the URL patterns to which the filter applies
- Default:
- {}
-
dispatcherTypes
@AliasFor(annotation=jakarta.servlet.annotation.WebFilter.class, member="dispatcherTypes") jakarta.servlet.DispatcherType[] dispatcherTypesThe dispatcher types to which the filter applies.- Returns:
- the dispatcher types to which the filter applies
- Default:
- {REQUEST}
-
asyncSupported
@AliasFor(annotation=jakarta.servlet.annotation.WebFilter.class, member="asyncSupported") boolean asyncSupportedDeclares whether the filter supports asynchronous operation mode.- Returns:
true
if the filter supports asynchronous operation mode- See Also:
-
ServletRequest.startAsync()
ServletRequest.startAsync(jakarta.servlet.ServletRequest,jakarta.servlet.ServletResponse)
- Default:
- false
-