Package io.micronaut.http.filter
Interface GenericHttpFilter
- All Known Subinterfaces:
GenericHttpFilter.Terminal
- All Known Implementing Classes:
GenericHttpFilter.AroundLegacy,GenericHttpFilter.Async,GenericHttpFilter.TerminalReactive
public sealed interface GenericHttpFilter
permits GenericHttpFilter.AroundLegacy, GenericHttpFilter.Async, GenericHttpFilter.Terminal (not exhaustive)
Base interface for different filter types. Note that while the base interface is exposed, so you
can pass around instances of these filters, the different implementations are internal only.
Only the framework should construct or call instances of this interface. The exception is the
terminal filter.- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record"Legacy" filter, i.e.static final recordWrapper around a filter that signifies the filter should be run asynchronously on the given executor.static interfaceLast item in a filter chain, called when all other filters are done.static final classTerminal filter that accepts a reactive type. -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleanWhen the filter is using the continuation it needs to be suspended and wait for the response.
-
Method Details
-
isSuspended
default boolean isSuspended()When the filter is using the continuation it needs to be suspended and wait for the response.- Returns:
- true if suspended
-
isFiltersException
default boolean isFiltersException()- Returns:
- true if the filter can receive the processing exception.
-