Package | Description |
---|---|
ratpack.path |
Types for managing the paths of requests inside the application.
|
Modifier and Type | Method and Description |
---|---|
static PathBinderBuilder |
PathBinder.builder()
Creates a new path binder builder.
|
PathBinderBuilder |
PathBinderBuilder.literal(String literal)
Add a literal to the path.
|
PathBinderBuilder |
PathBinderBuilder.literalPattern(String pattern)
Add a regular expression parameterized literal element to the path.
|
PathBinderBuilder |
PathBinderBuilder.optionalToken(String token)
Add an optional token to the path.
|
PathBinderBuilder |
PathBinderBuilder.optionalTokenWithPattern(String token,
String pattern)
Add a regular expression parameterized named optional token to the path.
|
PathBinderBuilder |
PathBinderBuilder.token(String token)
Add a token to the path.
|
PathBinderBuilder |
PathBinderBuilder.tokenWithPattern(String token,
String pattern)
Add a regular expression parameterized named token to the path.
|
Modifier and Type | Method and Description |
---|---|
static PathBinder |
PathBinder.of(boolean exhaustive,
Action<? super PathBinderBuilder> action)
Builds a path binder programmatically.
|