Package com.hexagonkt.http.patterns
Class TemplatePathPattern
-
- All Implemented Interfaces:
-
com.hexagonkt.http.patterns.PathPattern
public final class TemplatePathPattern implements PathPattern
A path definition. It parses path patterns and extract values for parameters.
No splat support (you can use named parameters though).
Delimiter is {var} to conform with RFC 6570.
It supports the {var:regex} format to match only parameters with a specific pattern.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<String>parametersprivate final Stringpatternprivate final Booleanprefix
-
Constructor Summary
Constructors Constructor Description TemplatePathPattern(String pattern, Boolean prefix)
-
Method Summary
Modifier and Type Method Description final List<String>getParameters()StringgetPattern()BooleangetPrefix()StringinsertParameters(Map<String, Object> parameters)-
-
Method Detail
-
getParameters
final List<String> getParameters()
-
getPattern
String getPattern()
-
getPrefix
Boolean getPrefix()
-
insertParameters
String insertParameters(Map<String, Object> parameters)
-
-
-
-