| Package | Description |
|---|---|
| com.linecorp.armeria.server |
Server core.
|
| Modifier and Type | Method and Description |
|---|---|
VirtualHost |
ServerConfig.defaultVirtualHost()
Returns the default
VirtualHost, which is used when no other VirtualHosts match the
host name of a client request. e.g. the "Host" header in HTTP or host name in TLS SNI extension |
VirtualHost |
ServerConfig.findVirtualHost(String hostname)
Finds the
VirtualHost that matches the specified hostname. |
VirtualHost |
ServiceRequestContextWrapper.virtualHost() |
VirtualHost |
ServiceRequestContext.virtualHost()
Returns the
VirtualHost that is handling the current Request. |
VirtualHost |
ServiceConfig.virtualHost()
Returns the
VirtualHost the ServiceConfig.service() belongs to. |
VirtualHost |
RoutingContext.virtualHost()
Returns the
VirtualHost instance which belongs to this RoutingContext. |
VirtualHost |
DefaultServiceRequestContext.virtualHost() |
| Modifier and Type | Method and Description |
|---|---|
List<VirtualHost> |
ServerConfig.findVirtualHosts(HttpService service)
|
List<VirtualHost> |
ServerConfig.virtualHosts()
Returns the
List of available VirtualHosts. |
| Modifier and Type | Method and Description |
|---|---|
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. |
static Router<ServiceConfig> |
Routers.ofVirtualHost(VirtualHost virtualHost,
Iterable<ServiceConfig> configs,
RejectedRouteHandler rejectionHandler)
Returns the default implementation of the
Router to find a ServiceConfig. |
| Modifier and Type | Method and Description |
|---|---|
VirtualHostBuilder |
VirtualHostBuilder.accessLogger(Function<? super VirtualHost,? extends org.slf4j.Logger> mapper)
Sets the access logger mapper of this
VirtualHost. |
ServerBuilder |
ServerBuilder.accessLogger(Function<? super VirtualHost,? extends org.slf4j.Logger> mapper)
Sets the default access logger mapper for all
VirtualHosts. |
Copyright © 2020 LeanCloud. All rights reserved.