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 defaultUriMatchInfo
implementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultUriMatchInfo(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 boolean
equals(java.lang.Object o)
java.lang.String
getUri()
java.util.Map<java.lang.String,UriMatchVariable>
getVariableMap()
java.util.List<UriMatchVariable>
getVariables()
java.util.Map<java.lang.String,java.lang.Object>
getVariableValues()
int
hashCode()
java.lang.String
toString()
-
-
-
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:
getUri
in interfaceUriMatchInfo
- Returns:
- The matched URI
-
getVariableValues
public java.util.Map<java.lang.String,java.lang.Object> getVariableValues()
- Specified by:
getVariableValues
in interfaceUriMatchInfo
- Returns:
- The variable values following a successful match
-
getVariables
public java.util.List<UriMatchVariable> getVariables()
- Specified by:
getVariables
in interfaceUriMatchInfo
- Returns:
- The list of template variables
-
getVariableMap
public java.util.Map<java.lang.String,UriMatchVariable> getVariableMap()
- Specified by:
getVariableMap
in interfaceUriMatchInfo
- Returns:
- A map of the variables.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-