public interface PathBinderBuilder
PathBinder from a list of tokens and literals.| Modifier and Type | Method and Description |
|---|---|
PathBinder |
build(boolean exhaustive)
Generate a
PathBinder from the contents of the builder. |
PathBinderBuilder |
literal(String literal)
Add a literal to the path.
|
PathBinderBuilder |
literalPattern(String pattern)
Add a regular expression parameterized literal element to the path.
|
PathBinderBuilder |
optionalToken(String token)
Add an optional token to the path.
|
PathBinderBuilder |
optionalTokenWithPattern(String token,
String pattern)
Add a regular expression parameterized named optional token to the path.
|
PathBinderBuilder |
token(String token)
Add a token to the path.
|
PathBinderBuilder |
tokenWithPattern(String token,
String pattern)
Add a regular expression parameterized named token to the path.
|
PathBinderBuilder tokenWithPattern(String token, String pattern)
token - the name of the tokenpattern - the valid regex patternPathBinderBuilder optionalTokenWithPattern(String token, String pattern)
token - the name of the optional tokenpattern - the valid regex patternPathBinderBuilder token(String token)
token - the name of the tokenPathBinderBuilder optionalToken(String token)
token - the name of the optional tokenPathBinderBuilder literalPattern(String pattern)
pattern - the valid regex patternPathBinderBuilder literal(String literal)
literal - the literal path componentPathBinder build(boolean exhaustive)
PathBinder from the contents of the builder.exhaustive - whether this path should be an exact matchPathBinder based on the state of this builder