Top Description Inners Fields Constructors Methods
org.glassfish.tyrus.core.uri.internal

public final Class PathTemplate

extends UriTemplate
Class Inheritance

A URI template for a URI path.
Authors
Paul Sandoz, Yegor Bugayenko (yegor256 at java.net)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
PathTemplate.PathTemplateParser

Internal parser of this PathTemplate.

Field Summary

Inherited from org.glassfish.tyrus.core.uri.internal.UriTemplate:
COMPARATOREMPTY

Constructor Summary

AccessConstructor and Description
public
PathTemplate(final String
the URI path template.
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 TypeMethod and Description
private static String

Returns:

slash-prefixed path.
prefixWithSlash
(final String
the URI path template.
path
)

Converts the path provided to a slash-leading form, no matter what is provided.

Inherited from org.glassfish.tyrus.core.uri.internal.UriTemplate:
createURIcreateURIcreateURIcreateURIcreateURIcreateURIWithStringValuescreateURIWithStringValuesendsWithSlashequalsgetNumberOfExplicitCharactersgetNumberOfExplicitRegexesgetNumberOfRegexGroupsgetNumberOfTemplateVariablesgetPatterngetTemplategetTemplateVariableshashCodeisTemplateVariablePresentmatchmatchnormalizenormalizerelativizeresolveresolveresolveTemplateValuestoString

Constructor Detail

PathTemplateback to summary
public PathTemplate(final 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:String

the URI path template.

Method Detail

prefixWithSlashback to summary
private static String prefixWithSlash(final String path)

Converts the path provided to a slash-leading form, no matter what is provided.

Parameters
path:String

the URI path template.

Returns:String

slash-prefixed path.

See Also
PathTemplate(String)
org.glassfish.tyrus.core.uri.internal back to summary

private final Class PathTemplate.PathTemplateParser

extends UriTemplateParser
Class Inheritance

Internal parser of this PathTemplate.
See Also
PathTemplate(String)

Field Summary

Inherited from org.glassfish.tyrus.core.uri.internal.UriTemplateParser:
EMPTY_INT_ARRAY

Constructor Summary

AccessConstructor and Description
public
PathTemplateParser(final String
the URI path template
path
)

Public constructor.

Method Summary

Modifier and TypeMethod and Description
protected String
encodeLiteralCharacters(final String
the literal characters
literalCharacters
)

Overrides org.glassfish.tyrus.core.uri.internal.UriTemplateParser.encodeLiteralCharacters.

Encode literal characters of a template.

Inherited from org.glassfish.tyrus.core.uri.internal.UriTemplateParser:
getGroupCountsgetGroupIndexesgetNamesgetNameToPatterngetNormalizedTemplategetNumberOfExplicitRegexesgetNumberOfLiteralCharactersgetNumberOfRegexGroupsgetPatterngetTemplate

Constructor Detail

PathTemplateParserback to summary
public PathTemplateParser(final String path)

Public constructor.

Parameters
path:String

the URI path template

Method Detail

encodeLiteralCharactersback to summary
protected String encodeLiteralCharacters(final String literalCharacters)

Overrides org.glassfish.tyrus.core.uri.internal.UriTemplateParser.encodeLiteralCharacters.

Doc from org.glassfish.tyrus.core.uri.internal.UriTemplateParser.encodeLiteralCharacters.

Encode literal characters of a template.

Parameters
literalCharacters:String

the literal characters

Returns:String

the encoded literal characters.

Annotations
@Override