Package io.micronaut.http.uri
Class UriMatchTemplate.DefaultUriMatchInfo
- java.lang.Object
-
- io.micronaut.http.uri.UriMatchTemplate.DefaultUriMatchInfo
-
- All Implemented Interfaces:
UriMatchInfo
- Enclosing class:
- UriMatchTemplate
protected static class UriMatchTemplate.DefaultUriMatchInfo extends java.lang.Object implements UriMatchInfo
The defaultUriMatchInfoimplementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultUriMatchInfo(java.lang.String uri, java.util.Map<java.lang.String,java.lang.Object> variableValues, java.util.List<UriMatchVariable> variables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetUri()java.util.Map<java.lang.String,UriMatchVariable>getVariableMap()java.util.List<UriMatchVariable>getVariables()java.util.Map<java.lang.String,java.lang.Object>getVariableValues()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultUriMatchInfo
protected DefaultUriMatchInfo(java.lang.String uri, java.util.Map<java.lang.String,java.lang.Object> variableValues, java.util.List<UriMatchVariable> variables)- Parameters:
uri- The URIvariableValues- The map of variable names with valuesvariables- The variables
-
-
Method Detail
-
getUri
public java.lang.String getUri()
- Specified by:
getUriin interfaceUriMatchInfo- Returns:
- The matched URI
-
getVariableValues
public java.util.Map<java.lang.String,java.lang.Object> getVariableValues()
- Specified by:
getVariableValuesin interfaceUriMatchInfo- Returns:
- The variable values following a successful match
-
getVariables
public java.util.List<UriMatchVariable> getVariables()
- Specified by:
getVariablesin interfaceUriMatchInfo- Returns:
- The list of template variables
-
getVariableMap
public java.util.Map<java.lang.String,UriMatchVariable> getVariableMap()
- Specified by:
getVariableMapin interfaceUriMatchInfo- Returns:
- A map of the variables.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-