Class PathTemplate

java.lang.Object
org.glassfish.tyrus.core.uri.internal.UriTemplate
org.glassfish.tyrus.core.uri.internal.PathTemplate

public final class PathTemplate extends UriTemplate
A URI template for a URI path.
Author:
Paul Sandoz, Yegor Bugayenko (yegor256 at java.net)
  • Constructor Details

    • PathTemplate

      public PathTemplate(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.