public final class FilterRegistry extends Object
| Constructor and Description |
|---|
FilterRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(@NotNull FilterHandler handler)
Add a filter.
|
void |
cleanup() |
@NotNull FilterHandler[] |
getFilterHandlers(@Nullable ServletHandler handler,
@NotNull javax.servlet.DispatcherType dispatcherType,
@NotNull String requestURI)
Get all filters handling the request.
|
void |
getRuntimeInfo(org.osgi.service.http.runtime.dto.ServletContextDTO servletContextDTO,
Collection<org.osgi.service.http.runtime.dto.FailedFilterDTO> failedFilterDTOs)
Get the runtime information about filters
|
void |
removeFilter(@NotNull FilterInfo filterInfo,
boolean destroy)
Remove a filter
|
public void addFilter(@NotNull
@NotNull FilterHandler handler)
handler - The handler for the filterpublic void removeFilter(@NotNull
@NotNull FilterInfo filterInfo,
boolean destroy)
filterInfo - The filter infodestroy - boolean flag indicating whether to call destroy on the filter.public void cleanup()
@NotNull public @NotNull FilterHandler[] getFilterHandlers(@Nullable @Nullable ServletHandler handler, @NotNull @NotNull javax.servlet.DispatcherType dispatcherType, @NotNull @NotNull String requestURI)
handler - Optional servlet handlerdispatcherType - The dispatcher typerequestURI - The request uripublic void getRuntimeInfo(org.osgi.service.http.runtime.dto.ServletContextDTO servletContextDTO,
Collection<org.osgi.service.http.runtime.dto.FailedFilterDTO> failedFilterDTOs)
servletContextDTO - The servlet context DTOfailedFilterDTOs - The collection holding the failed filters.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.