Class PathTemplate
java.lang.Object
org.glassfish.jersey.uri.UriTemplate
org.glassfish.jersey.uri.PathTemplate
A URI template for a URI path.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classInternal parser of this PathTemplate. -
Field Summary
Fields inherited from class UriTemplate
COMPARATOR, EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionPathTemplate(String path) Create a URI path template and encode (percent escape) any characters of the template that are not valid URI characters. -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringprefixWithSlash(String path) Converts the path provided to a slash-leading form, no matter what is provided.Methods inherited from class 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 Details
-
PathTemplate
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 Details
-
prefixWithSlash
-