Package io.vertx.rxjava3.httpproxy
Class OriginRequestProvider
- java.lang.Object
- 
- io.vertx.rxjava3.httpproxy.OriginRequestProvider
 
- 
- All Implemented Interfaces:
- io.vertx.lang.rx.RxDelegate
 
 public class OriginRequestProvider extends Object implements io.vertx.lang.rx.RxDelegate A provider that creates the request to the origin server based onProxyContext.NOTE: This class has been automatically generated from the originalnon RX-ified interface using Vert.x codegen.
- 
- 
Field SummaryFields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<OriginRequestProvider>__TYPE_ARG
 - 
Constructor SummaryConstructors Constructor Description OriginRequestProvider(OriginRequestProvider delegate)OriginRequestProvider(Object delegate)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Single<HttpClientRequest>create(ProxyContext proxyContext)Create the to the origin server for a givenProxyContext.booleanequals(Object o)static OriginRequestProviderfixedAddress(int port, String host)Creates a simple provider for a fixedportandhost.static OriginRequestProviderfixedAddress(SocketAddress address)Creates a simple provider for a fixed .OriginRequestProvidergetDelegate()inthashCode()static OriginRequestProvidernewInstance(OriginRequestProvider arg)Single<HttpClientRequest>rxCreate(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.StringtoString()
 
- 
- 
- 
Field Detail- 
__TYPE_ARGpublic static final io.vertx.lang.rx.TypeArg<OriginRequestProvider> __TYPE_ARG 
 
- 
 - 
Constructor Detail- 
OriginRequestProviderpublic OriginRequestProvider(OriginRequestProvider delegate) 
 - 
OriginRequestProviderpublic OriginRequestProvider(Object delegate) 
 
- 
 - 
Method Detail- 
getDelegatepublic OriginRequestProvider getDelegate() - Specified by:
- getDelegatein interface- io.vertx.lang.rx.RxDelegate
 
 - 
fixedAddresspublic static OriginRequestProvider fixedAddress(int port, String host) Creates a simple provider for a fixedportandhost.- Parameters:
- port-
- host-
- Returns:
 
 - 
fixedAddresspublic static OriginRequestProvider fixedAddress(SocketAddress address) Creates a simple provider for a fixed .- Parameters:
- address-
- Returns:
 
 - 
selectorpublic static OriginRequestProvider selector(Function<ProxyContext,Single<SocketAddress>> selector) Creates a provider that selects the origin server based onProxyContext.- Parameters:
- selector-
- Returns:
 
 - 
createpublic Single<HttpClientRequest> create(ProxyContext proxyContext) 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
 
 - 
rxCreatepublic Single<HttpClientRequest> rxCreate(ProxyContext proxyContext) 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
 
 - 
newInstancepublic static OriginRequestProvider newInstance(OriginRequestProvider arg) 
 
- 
 
-