| Package | Description |
|---|---|
| com.linecorp.armeria.internal.server.annotation |
Various classes used internally.
|
| com.linecorp.armeria.server |
Server core.
|
| com.linecorp.armeria.server.composition |
Service composition.
|
| com.linecorp.armeria.server.cors |
Cross-Origin Resource Sharing
(CORS) support.
|
| com.linecorp.armeria.server.file |
HTTP static file service.
|
| Modifier and Type | Method and Description |
|---|---|
Route |
AnnotatedServiceElement.route()
Returns the
Route. |
| Modifier and Type | Method and Description |
|---|---|
Route |
RouteBuilder.build()
Returns a newly-created
Route based on the properties of this builder. |
static Route |
Route.ofCatchAll()
Returns the catch-all
Route which matches every request. |
Route |
ServiceRequestContextWrapper.route() |
Route |
ServiceRequestContext.route()
|
Route |
ServiceConfig.route()
Returns the
Route of the ServiceConfig.service(). |
Route |
Routed.route()
Returns the
Route which matched the RoutingContext. |
Route |
DefaultServiceRequestContext.route() |
| Modifier and Type | Method and Description |
|---|---|
Set<Route> |
ServiceWithRoutes.routes()
Returns the set of
Routes to which this HttpService is bound. |
| Modifier and Type | Method and Description |
|---|---|
VirtualHostBuilder |
VirtualHostBuilder.decorator(Route route,
DecoratingHttpServiceFunction decoratingHttpServiceFunction)
|
ServerBuilder |
ServerBuilder.decorator(Route route,
DecoratingHttpServiceFunction decoratingHttpServiceFunction)
Decorates
HttpServices with the specified Route. |
VirtualHostBuilder |
VirtualHostBuilder.decorator(Route route,
Function<? super HttpService,? extends HttpService> decorator)
|
ServerBuilder |
ServerBuilder.decorator(Route route,
Function<? super HttpService,? extends HttpService> decorator)
Decorates
HttpServices with the specified Route. |
void |
RejectedRouteHandler.handleDuplicateRoute(VirtualHost virtualHost,
Route route,
Route existingRoute)
Invoked when a user attempts to bind an
HttpService at the Route that conflicts with
an existing Route. |
ServiceRequestContextBuilder |
ServiceRequestContextBuilder.route(Route route)
Sets the
Route of the request. |
VirtualHostBuilder |
VirtualHostBuilder.service(Route route,
HttpService service)
Binds the specified
HttpService at the specified Route. |
ServerBuilder |
ServerBuilder.service(Route route,
HttpService service)
|
default boolean |
Service.shouldCachePath(String path,
String query,
Route route)
Returns whether the given
path and query should be cached if the service's result is
successful. |
boolean |
DecoratingService.shouldCachePath(String path,
String query,
Route route) |
| Modifier and Type | Method and Description |
|---|---|
Route |
CompositeServiceEntry.route()
Returns the
Route of the CompositeServiceEntry.service(). |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Service<?,?>> |
CompositeServiceEntry.of(Route route,
T service)
|
SimpleCompositeServiceBuilder |
SimpleCompositeServiceBuilder.service(Route route,
HttpService service) |
SimpleCompositeRpcServiceBuilder |
SimpleCompositeRpcServiceBuilder.service(Route route,
RpcService service) |
protected AbstractCompositeServiceBuilder<T> |
AbstractCompositeServiceBuilder.service(Route route,
T service)
|
| Modifier and Type | Method and Description |
|---|---|
List<Route> |
CorsPolicy.routes()
Returns the list of
Routes that this policy is supposed to be applied to. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FileService.shouldCachePath(String path,
String query,
Route route) |
Copyright © 2020 LeanCloud. All rights reserved.