| Package | Description |
|---|---|
| com.linecorp.armeria.server |
Server core.
|
| com.linecorp.armeria.server.composition |
Service composition.
|
| com.linecorp.armeria.server.cors |
Cross-Origin Resource Sharing
(CORS) support.
|
| Modifier and Type | Method and Description |
|---|---|
default RoutingContext |
RoutingContext.overridePath(String path)
Returns a wrapped
RoutingContext which holds the specified path. |
RoutingContext |
ServiceRequestContextWrapper.routingContext() |
RoutingContext |
ServiceRequestContext.routingContext()
Returns the
RoutingContext used to find the Service. |
RoutingContext |
DefaultServiceRequestContext.routingContext() |
| Modifier and Type | Method and Description |
|---|---|
RoutingResult |
Route.apply(RoutingContext routingCtx)
Matches the specified
RoutingContext and extracts the path parameters from it if exists. |
Routed<V> |
Router.find(RoutingContext routingCtx)
Finds the value of mapping that matches the specified
RoutingContext. |
List<Routed<V>> |
Router.findAll(RoutingContext routingCtx)
Finds all values of mapping that match the specified
RoutingContext. |
Routed<ServiceConfig> |
VirtualHost.findServiceConfig(RoutingContext routingCtx)
|
Routed<ServiceConfig> |
VirtualHost.findServiceConfig(RoutingContext routingCtx,
boolean useFallbackService)
|
| Constructor and Description |
|---|
DefaultServiceRequestContext(ServiceConfig cfg,
io.netty.channel.Channel ch,
MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
RoutingContext routingContext,
RoutingResult routingResult,
HttpRequest req,
SSLSession sslSession,
ProxiedAddresses proxiedAddresses,
InetAddress clientAddress,
long requestStartTimeNanos,
long requestStartTimeMicros)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Routed<HttpService> |
SimpleCompositeService.findService(RoutingContext routingCtx) |
Routed<RpcService> |
SimpleCompositeRpcService.findService(RoutingContext routingCtx) |
protected Routed<T> |
AbstractCompositeService.findService(RoutingContext routingCtx)
|
| Modifier and Type | Method and Description |
|---|---|
CorsPolicy |
CorsConfig.getPolicy(String origin,
RoutingContext routingContext)
Returns the policy for the specified
origin. |
Copyright © 2020 LeanCloud. All rights reserved.