Package org.glassfish.jersey.uri
Class PathTemplate
- java.lang.Object
-
- org.glassfish.jersey.uri.UriTemplate
-
- org.glassfish.jersey.uri.PathTemplate
-
public final class PathTemplate extends UriTemplate
A URI template for a URI path.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
PathTemplate.PathTemplateParser
Internal parser of this PathTemplate.
-
Field Summary
-
Fields inherited from class org.glassfish.jersey.uri.UriTemplate
COMPARATOR, EMPTY
-
-
Constructor Summary
Constructors Constructor Description PathTemplate(java.lang.String path)
Create a URI path template and encode (percent escape) any characters of the template that are not valid URI characters.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
prefixWithSlash(java.lang.String path)
Converts the path provided to a slash-leading form, no matter what is provided.-
Methods inherited from class org.glassfish.jersey.uri.UriTemplate
createURI, createURI, createURI, createURI, createURI, createURIWithStringValues, createURIWithStringValues, endsWithSlash, equals, getNumberOfExplicitCharacters, getNumberOfExplicitRegexes, getNumberOfRegexGroups, getNumberOfTemplateVariables, getPattern, getTemplate, getTemplateVariables, hashCode, isTemplateVariablePresent, match, match, normalize, normalize, relativize, resolve, resolve, resolveTemplateValues, toString
-
-
-
-
Constructor Detail
-
PathTemplate
public PathTemplate(java.lang.String path)
Create a URI path template and encode (percent escape) any characters of the template that are not valid URI characters. Paths that don't start with a slash ('/'
) will be automatically prefixed with one.- Parameters:
path
- the URI path template.
-
-
Method Detail
-
prefixWithSlash
private static java.lang.String prefixWithSlash(java.lang.String path)
Converts the path provided to a slash-leading form, no matter what is provided.- Parameters:
path
- the URI path template.- Returns:
- slash-prefixed path.
- See Also:
PathTemplate(String)
-
-