| Package | Description |
|---|---|
| com.linecorp.armeria.server |
Server core.
|
| Modifier and Type | Method and Description |
|---|---|
static RouteBuilder |
Route.builder()
Returns a new builder.
|
RouteBuilder |
RouteBuilder.catchAll()
Sets the
Route to match any path. |
RouteBuilder |
RouteBuilder.consumes(Iterable<MediaType> consumeTypes)
|
RouteBuilder |
RouteBuilder.consumes(MediaType... consumeTypes)
|
RouteBuilder |
RouteBuilder.exact(String exactPath)
Sets the
Route to match the specified exact path. |
RouteBuilder |
RouteBuilder.glob(String glob)
Sets the
Route to match the specified glob. |
RouteBuilder |
RouteBuilder.matchesHeaders(CharSequence headerName,
Predicate<? super String> valuePredicate)
Sets the
Route to accept a request when the specified valuePredicate evaluates
true with the value of the specified headerName header. |
RouteBuilder |
RouteBuilder.matchesHeaders(Iterable<String> headerPredicates)
Sets the
Route to accept a request if it matches all the specified predicates for
HttpHeaders. |
RouteBuilder |
RouteBuilder.matchesHeaders(String... headerPredicates)
Sets the
Route to accept a request if it matches all the specified predicates for
HttpHeaders. |
RouteBuilder |
RouteBuilder.matchesParams(Iterable<String> paramPredicates)
Sets the
Route to accept a request if it matches all the specified predicates for
HTTP parameters. |
RouteBuilder |
RouteBuilder.matchesParams(String... paramPredicates)
Sets the
Route to accept a request if it matches all the specified predicates for
HTTP parameters. |
RouteBuilder |
RouteBuilder.matchesParams(String paramName,
Predicate<? super String> valuePredicate)
Sets the
Route to accept a request when the specified valuePredicate evaluates
true with the value of the specified paramName parameter. |
RouteBuilder |
RouteBuilder.methods(HttpMethod... methods)
Sets the
Route to support the specified HttpMethods. |
RouteBuilder |
RouteBuilder.methods(Iterable<HttpMethod> methods)
Sets the
Route to support the specified HttpMethods. |
RouteBuilder |
RouteBuilder.path(String pathPattern)
Sets the
Route to match the specified pathPattern. e.g. |
RouteBuilder |
RouteBuilder.path(String prefix,
String pathPattern)
|
RouteBuilder |
RouteBuilder.pathPrefix(String prefix)
|
RouteBuilder |
RouteBuilder.pathPrefix(String prefix,
boolean stripPrefix)
|
RouteBuilder |
RouteBuilder.pathWithPrefix(String prefix,
String pathPattern)
Deprecated.
|
RouteBuilder |
RouteBuilder.prefix(String prefix)
Deprecated.
|
RouteBuilder |
RouteBuilder.prefix(String prefix,
boolean stripPrefix)
Deprecated.
|
RouteBuilder |
RouteBuilder.produces(Iterable<MediaType> produceTypes)
|
RouteBuilder |
RouteBuilder.produces(MediaType... produceTypes)
|
RouteBuilder |
RouteBuilder.regex(Pattern regex)
Sets the
Route to match the specified regex. |
RouteBuilder |
RouteBuilder.regex(String regex)
Sets the
Route to match the specified regex. |
Copyright © 2020 LeanCloud. All rights reserved.