Class PathTemplate


  • public final class PathTemplate
    extends UriTemplate
    A URI template for a URI path.
    • 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)