Package io.micronaut.http.filter
Record Class GenericHttpFilter.AroundLegacy
java.lang.Object
java.lang.Record
io.micronaut.http.filter.GenericHttpFilter.AroundLegacy
- Record Components:
bean
- The filter beanorder
- The filter order
- All Implemented Interfaces:
Ordered
,GenericHttpFilter
- Enclosing interface:
- GenericHttpFilter
@Internal
public static record GenericHttpFilter.AroundLegacy(HttpFilter bean, FilterOrder order)
extends Record
implements GenericHttpFilter, Ordered
"Legacy" filter, i.e. filter bean that implements
HttpFilter
.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.http.filter.GenericHttpFilter
GenericHttpFilter.AroundLegacy, GenericHttpFilter.Async, GenericHttpFilter.Terminal, GenericHttpFilter.TerminalReactive
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionAroundLegacy
(HttpFilter bean, FilterOrder order) Creates an instance of aAroundLegacy
record class. -
Method Summary
Modifier and TypeMethodDescriptionbean()
Returns the value of thebean
record component.final boolean
Indicates whether some other object is "equal to" this one.int
getOrder()
final int
hashCode()
Returns a hash code value for this object.boolean
boolean
boolean
When the filter is using the continuation it needs to be suspended and wait for the response.order()
Returns the value of theorder
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isSuspended
public boolean isSuspended()Description copied from interface:GenericHttpFilter
When the filter is using the continuation it needs to be suspended and wait for the response.- Specified by:
isSuspended
in interfaceGenericHttpFilter
- Returns:
- true if suspended
-
isFiltersException
public boolean isFiltersException()- Specified by:
isFiltersException
in interfaceGenericHttpFilter
- Returns:
- true if the filter can receive the processing exception.
-
isEnabled
public boolean isEnabled() -
getOrder
public int getOrder() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
bean
Returns the value of thebean
record component.- Returns:
- the value of the
bean
record component
-
order
Returns the value of theorder
record component.- Returns:
- the value of the
order
record component
-