Interface OriginRequestProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A provider that creates the request to the origin server based on
ProxyContext.-
Method Summary
Modifier and TypeMethodDescriptioncreate(ProxyContext proxyContext) Create theHttpClientRequestto the origin server for a givenProxyContext.static OriginRequestProviderfixedAddress(int port, String host) Creates a simple provider for a fixedportandhost.static OriginRequestProviderfixedAddress(SocketAddress address) Creates a simple provider for a fixedSocketAddress.static OriginRequestProviderselector(Function<ProxyContext, Future<SocketAddress>> selector) Creates a provider that selects the origin server based onProxyContext.
-
Method Details
-
fixedAddress
Creates a simple provider for a fixedportandhost. -
fixedAddress
Creates a simple provider for a fixedSocketAddress. -
selector
Creates a provider that selects the origin server based onProxyContext. -
create
Create theHttpClientRequestto the origin server for a givenProxyContext.- Parameters:
proxyContext- the context of the proxied request and response- Returns:
- a future, completed with the
HttpClientRequestor failed
-