Record Class RoutesControlPanel.RouteRow

java.lang.Object
java.lang.Record
io.micronaut.controlpanel.core.panels.RoutesControlPanel.RouteRow
Record Components:
httpMethodName - HTTP method name or merged value (e.g. "GET, HEAD").
uriMatchTemplate - The URI template for the route.
produces - Produced media types.
consumes - Consumed media types.
targetMethod - Target method info (name, arguments).
Enclosing class:
RoutesControlPanel

public static record RoutesControlPanel.RouteRow(String httpMethodName, io.micronaut.http.uri.UriMatchTemplate uriMatchTemplate, List<io.micronaut.http.MediaType> produces, List<io.micronaut.http.MediaType> consumes, RoutesControlPanel.TargetMethod targetMethod) extends Record
View model used by templates to render a single route row.
Since:
1.0.0
Author:
Álvaro Sánchez-Mariscal
  • Constructor Details

    • RouteRow

      public RouteRow(String httpMethodName, io.micronaut.http.uri.UriMatchTemplate uriMatchTemplate, List<io.micronaut.http.MediaType> produces, List<io.micronaut.http.MediaType> consumes, RoutesControlPanel.TargetMethod targetMethod)
      Creates an instance of a RouteRow record class.
      Parameters:
      httpMethodName - the value for the httpMethodName record component
      uriMatchTemplate - the value for the uriMatchTemplate record component
      produces - the value for the produces record component
      consumes - the value for the consumes record component
      targetMethod - the value for the targetMethod record component
  • Method Details

    • getHttpMethodName

      public String getHttpMethodName()
    • getUriMatchTemplate

      public io.micronaut.http.uri.UriMatchTemplate getUriMatchTemplate()
    • getProduces

      public List<io.micronaut.http.MediaType> getProduces()
    • getConsumes

      public List<io.micronaut.http.MediaType> getConsumes()
    • getTargetMethod

      public RoutesControlPanel.TargetMethod getTargetMethod()
    • 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.
    • httpMethodName

      public String httpMethodName()
      Returns the value of the httpMethodName record component.
      Returns:
      the value of the httpMethodName record component
    • uriMatchTemplate

      public io.micronaut.http.uri.UriMatchTemplate uriMatchTemplate()
      Returns the value of the uriMatchTemplate record component.
      Returns:
      the value of the uriMatchTemplate record component
    • produces

      public List<io.micronaut.http.MediaType> produces()
      Returns the value of the produces record component.
      Returns:
      the value of the produces record component
    • consumes

      public List<io.micronaut.http.MediaType> consumes()
      Returns the value of the consumes record component.
      Returns:
      the value of the consumes record component
    • targetMethod

      public RoutesControlPanel.TargetMethod targetMethod()
      Returns the value of the targetMethod record component.
      Returns:
      the value of the targetMethod record component