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

    Constructors
    Constructor
    Description
    Default(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 a Default record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates 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 the handlerFunction record component.
    final int
    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 the higherPrecedenceFilters record component.
    List<org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse>>
    Returns the value of the lowerPrecedenceFilters record component.
    Returns the value of the scheme record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Default record class.
      Parameters:
      scheme - the value for the scheme record component
      handlerFunction - the value for the handlerFunction record component
      lowerPrecedenceFilters - the value for the lowerPrecedenceFilters record component
      higherPrecedenceFilters - the value for the higherPrecedenceFilters record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • scheme

      public String scheme()
      Returns the value of the scheme record component.
      Returns:
      the value of the scheme record component
    • handlerFunction

      public org.springframework.web.servlet.function.HandlerFunction<org.springframework.web.servlet.function.ServerResponse> handlerFunction()
      Returns the value of the handlerFunction record component.
      Specified by:
      handlerFunction in interface HandlerFunctionDefinition
      Returns:
      the value of the handlerFunction record 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 the lowerPrecedenceFilters record component.
      Specified by:
      lowerPrecedenceFilters in interface HandlerFunctionDefinition
      Returns:
      the value of the lowerPrecedenceFilters record 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 the higherPrecedenceFilters record component.
      Specified by:
      higherPrecedenceFilters in interface HandlerFunctionDefinition
      Returns:
      the value of the higherPrecedenceFilters record component