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 Summary
ConstructorsConstructorDescriptionRouteRow(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 aRouteRowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<io.micronaut.http.MediaType> consumes()Returns the value of theconsumesrecord component.final booleanIndicates whether some other object is "equal to" this one.List<io.micronaut.http.MediaType> List<io.micronaut.http.MediaType> io.micronaut.http.uri.UriMatchTemplatefinal inthashCode()Returns a hash code value for this object.Returns the value of thehttpMethodNamerecord component.List<io.micronaut.http.MediaType> produces()Returns the value of theproducesrecord component.Returns the value of thetargetMethodrecord component.final StringtoString()Returns a string representation of this record class.io.micronaut.http.uri.UriMatchTemplateReturns the value of theuriMatchTemplaterecord component.
-
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 aRouteRowrecord class.- Parameters:
httpMethodName- the value for thehttpMethodNamerecord componenturiMatchTemplate- the value for theuriMatchTemplaterecord componentproduces- the value for theproducesrecord componentconsumes- the value for theconsumesrecord componenttargetMethod- the value for thetargetMethodrecord component
-
-
Method Details
-
getHttpMethodName
-
getUriMatchTemplate
public io.micronaut.http.uri.UriMatchTemplate getUriMatchTemplate() -
getProduces
-
getConsumes
-
getTargetMethod
-
toString
-
hashCode
-
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). -
httpMethodName
Returns the value of thehttpMethodNamerecord component.- Returns:
- the value of the
httpMethodNamerecord component
-
uriMatchTemplate
public io.micronaut.http.uri.UriMatchTemplate uriMatchTemplate()Returns the value of theuriMatchTemplaterecord component.- Returns:
- the value of the
uriMatchTemplaterecord component
-
produces
-
consumes
-
targetMethod
Returns the value of thetargetMethodrecord component.- Returns:
- the value of the
targetMethodrecord component
-