Package io.micronaut.http.uri
Class UriMatchVariable
- java.lang.Object
-
- io.micronaut.http.uri.UriMatchVariable
-
public class UriMatchVariable extends java.lang.ObjectRepresents a variable in a URI template.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetName()inthashCode()booleanisExploded()booleanisOptional()An optional variable is one that will allow the route to match if it is not present.booleanisQuery()
-
-
-
Method Detail
-
getName
public java.lang.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(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-