Package oracle.dbtools.plugin.api.routes
Interface PathTemplateMatch
-
public interface PathTemplateMatch
Represents thePathTemplate
that was matched to a request- Author:
- cdivilly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
name()
The optional mnemonic name assigned to thePathTemplate
that was matched to this request, in other words the value of thePathTemplate.name()
property.MultiMap<java.lang.String,java.lang.String>
parameters()
The parameters extracted from the matching request path.MultiMap<java.lang.String,java.lang.String>
parameters(boolean decode)
The parameters extracted from the matching request path.java.lang.String
pattern()
The pattern of thePathTemplate
that was matched against this request
-
-
-
Method Detail
-
name
java.lang.String name()
The optional mnemonic name assigned to thePathTemplate
that was matched to this request, in other words the value of thePathTemplate.name()
property.- Returns:
- String containing
PathTemplate
name, or null if no named was specified.
-
pattern
java.lang.String pattern()
The pattern of thePathTemplate
that was matched against this request- Returns:
- route pattern
-
parameters
MultiMap<java.lang.String,java.lang.String> parameters()
The parameters extracted from the matching request path. The values are not URL encoded. This method is equivalent to callingparameters(boolean)
with atrue
argument.- Returns:
- The matched parameters, the values are not URL encoded
-
parameters
MultiMap<java.lang.String,java.lang.String> parameters(boolean decode)
The parameters extracted from the matching request path.- Parameters:
decode
- Iftrue
the values are not URL encoded. Iffalse
the values are URL encoded.- Returns:
- The matched parameters.
-
-