Record Class HandlerFunctionDefinition.Default
java.lang.Object
java.lang.Record
org.springframework.cloud.gateway.server.mvc.handler.HandlerFunctionDefinition.Default
- All Implemented Interfaces:
HandlerFunctionDefinition
- Enclosing interface:
- HandlerFunctionDefinition
public static record HandlerFunctionDefinition.Default(String scheme, org.springframework.web.servlet.function.HandlerFunction<org.springframework.web.servlet.function.ServerResponse> handlerFunction, List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse>> lowerPrecedenceFilters, List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse>> higherPrecedenceFilters)
extends Record
implements HandlerFunctionDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.cloud.gateway.server.mvc.handler.HandlerFunctionDefinition
HandlerFunctionDefinition.Default -
Constructor Summary
ConstructorsConstructorDescriptionDefault(String scheme, org.springframework.web.servlet.function.HandlerFunction<org.springframework.web.servlet.function.ServerResponse> handlerFunction) Default(String scheme, org.springframework.web.servlet.function.HandlerFunction<org.springframework.web.servlet.function.ServerResponse> handlerFunction, List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse>> lowerPrecedenceFilters, List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse>> higherPrecedenceFilters) Creates an instance of aDefaultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.springframework.web.servlet.function.HandlerFunction<org.springframework.web.servlet.function.ServerResponse>Returns the value of thehandlerFunctionrecord component.final inthashCode()Returns a hash code value for this object.List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse>> Returns the value of thehigherPrecedenceFiltersrecord component.List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse>> Returns the value of thelowerPrecedenceFiltersrecord component.scheme()Returns the value of theschemerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Default
public Default(String scheme, org.springframework.web.servlet.function.HandlerFunction<org.springframework.web.servlet.function.ServerResponse> handlerFunction) -
Default
public Default(String scheme, org.springframework.web.servlet.function.HandlerFunction<org.springframework.web.servlet.function.ServerResponse> handlerFunction, List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse>> lowerPrecedenceFilters, List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse>> higherPrecedenceFilters) Creates an instance of aDefaultrecord class.- Parameters:
scheme- the value for theschemerecord componenthandlerFunction- the value for thehandlerFunctionrecord componentlowerPrecedenceFilters- the value for thelowerPrecedenceFiltersrecord componenthigherPrecedenceFilters- the value for thehigherPrecedenceFiltersrecord component
-
-
Method Details
-
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). -
scheme
Returns the value of theschemerecord component.- Returns:
- the value of the
schemerecord component
-
handlerFunction
public org.springframework.web.servlet.function.HandlerFunction<org.springframework.web.servlet.function.ServerResponse> handlerFunction()Returns the value of thehandlerFunctionrecord component.- Specified by:
handlerFunctionin interfaceHandlerFunctionDefinition- Returns:
- the value of the
handlerFunctionrecord component
-
lowerPrecedenceFilters
public List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse>> lowerPrecedenceFilters()Returns the value of thelowerPrecedenceFiltersrecord component.- Specified by:
lowerPrecedenceFiltersin interfaceHandlerFunctionDefinition- Returns:
- the value of the
lowerPrecedenceFiltersrecord component
-
higherPrecedenceFilters
public List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse>> higherPrecedenceFilters()Returns the value of thehigherPrecedenceFiltersrecord component.- Specified by:
higherPrecedenceFiltersin interfaceHandlerFunctionDefinition- Returns:
- the value of the
higherPrecedenceFiltersrecord component
-