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(java.lang.String literal)
Add a literal to the path.
|
PathBinderBuilder |
literalPattern(java.lang.String pattern)
Add a regular expression parameterized literal element to the path.
|
PathBinderBuilder |
optionalToken(java.lang.String token)
Add an optional token to the path.
|
PathBinderBuilder |
optionalTokenWithPattern(java.lang.String token,
java.lang.String pattern)
Add a regular expression parameterized named optional token to the path.
|
PathBinderBuilder |
token(java.lang.String token)
Add a token to the path.
|
PathBinderBuilder |
tokenWithPattern(java.lang.String token,
java.lang.String pattern)
Add a regular expression parameterized named token to the path.
|
PathBinderBuilder tokenWithPattern(java.lang.String token, java.lang.String pattern)
token
- the name of the tokenpattern
- the valid regex patternPathBinderBuilder optionalTokenWithPattern(java.lang.String token, java.lang.String pattern)
token
- the name of the optional tokenpattern
- the valid regex patternPathBinderBuilder token(java.lang.String token)
token
- the name of the tokenPathBinderBuilder optionalToken(java.lang.String token)
token
- the name of the optional tokenPathBinderBuilder literalPattern(java.lang.String pattern)
pattern
- the valid regex patternPathBinderBuilder literal(java.lang.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