Package org.glassfish.jersey.uri
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 class
Internal parser of this PathTemplate. -
Field Summary
Fields inherited from class org.glassfish.jersey.uri.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 String
prefixWithSlash
(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 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
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:
-