Class UriMatchVariable

java.lang.Object
io.micronaut.http.uri.UriMatchVariable

public class UriMatchVariable extends Object
Represents a variable in a URI template.
Since:
1.0
Author:
James Kleeh
  • Method Details

    • getName

      public String getName()
      Returns:
      The variable name
    • isExploded

      public boolean isExploded()
      Returns:
      True if the variable is exploded
    • isQuery

      public boolean isQuery()
      Returns:
      true if the variable part of a query.
    • isOptional

      public boolean isOptional()
      An optional variable is one that will allow the route to match if it is not present.
      Returns:
      True if the variable is optional
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object