Class OriginRequestProvider
java.lang.Object
io.vertx.rxjava3.httpproxy.OriginRequestProvider
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
A provider that creates the request to the origin server based on
ProxyContext.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOriginRequestProvider(OriginRequestProvider delegate) OriginRequestProvider(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptioncreate(ProxyContext proxyContext) Create the to the origin server for a givenProxyContext.booleanstatic OriginRequestProviderfixedAddress(int port, String host) Creates a simple provider for a fixedportandhost.static OriginRequestProviderfixedAddress(SocketAddress address) Creates a simple provider for a fixed .inthashCode()static OriginRequestProviderrxCreate(ProxyContext proxyContext) Create the to the origin server for a givenProxyContext.static OriginRequestProviderselector(Function<ProxyContext, Single<SocketAddress>> selector) Creates a provider that selects the origin server based onProxyContext.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
OriginRequestProvider
-
OriginRequestProvider
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
fixedAddress
Creates a simple provider for a fixedportandhost.- Parameters:
port-host-- Returns:
-
fixedAddress
Creates a simple provider for a fixed .- Parameters:
address-- Returns:
-
selector
public static OriginRequestProvider selector(Function<ProxyContext, Single<SocketAddress>> selector) Creates a provider that selects the origin server based onProxyContext.- Parameters:
selector-- Returns:
-
create
Create the to the origin server for a givenProxyContext.- Parameters:
proxyContext- the context of the proxied request and response- Returns:
- a future, completed with the or failed
-
rxCreate
Create the to the origin server for a givenProxyContext.- Parameters:
proxyContext- the context of the proxied request and response- Returns:
- a future, completed with the or failed
-
newInstance
-