| Package | Description |
|---|---|
| com.linecorp.armeria.server |
Server core.
|
| Modifier and Type | Method and Description |
|---|---|
static ProxiedAddresses |
ProxiedAddresses.of(InetSocketAddress sourceAddress)
Creates a new instance with the specified
sourceAddress. |
static ProxiedAddresses |
ProxiedAddresses.of(InetSocketAddress sourceAddress,
InetSocketAddress destinationAddress)
Creates a new instance with the specified
sourceAddress and destinationAddress. |
static ProxiedAddresses |
ProxiedAddresses.of(InetSocketAddress sourceAddress,
Iterable<? extends InetSocketAddress> destinationAddresses)
Creates a new instance with the specified
sourceAddress and destinationAddresses. |
ProxiedAddresses |
ServiceRequestContextWrapper.proxiedAddresses() |
ProxiedAddresses |
ServiceRequestContext.proxiedAddresses()
Returns the proxied addresses of the current
Request. |
ProxiedAddresses |
DefaultServiceRequestContext.proxiedAddresses() |
| Modifier and Type | Method and Description |
|---|---|
Function<? super ProxiedAddresses,? extends InetSocketAddress> |
ServerConfig.clientAddressMapper()
Returns a
Function to use when determining the client address from ProxiedAddresses. |
| Modifier and Type | Method and Description |
|---|---|
ServiceRequestContextBuilder |
ServiceRequestContextBuilder.proxiedAddresses(ProxiedAddresses proxiedAddresses)
Sets the
ProxiedAddresses of the request. |
| Modifier and Type | Method and Description |
|---|---|
ServerBuilder |
ServerBuilder.clientAddressMapper(Function<? super ProxiedAddresses,? extends InetSocketAddress> clientAddressMapper)
Sets a
Function to use when determining the client address from ProxiedAddresses. |
| 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.
|
Copyright © 2020 LeanCloud. All rights reserved.