public class HttpProxy extends Object implements io.vertx.core.Handler<HttpServerRequest>
NOTE: This class has been automatically generated from the
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<HttpProxy> |
__TYPE_ARG |
| Constructor and Description |
|---|
HttpProxy(io.vertx.httpproxy.HttpProxy delegate) |
HttpProxy(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
HttpProxy |
addInterceptor(ProxyInterceptor interceptor)
Add an interceptor to the interceptor chain.
|
boolean |
equals(Object o) |
io.vertx.httpproxy.HttpProxy |
getDelegate() |
void |
handle(HttpServerRequest outboundRequest)
Handle the outbound
HttpServerRequest. |
int |
hashCode() |
static HttpProxy |
newInstance(io.vertx.httpproxy.HttpProxy arg) |
HttpProxy |
origin(int port,
String host)
Set the host name and port number of the origin.
|
HttpProxy |
origin(SocketAddress address)
Set the
SocketAddress of the origin. |
HttpProxy |
originSelector(Function<HttpServerRequest,io.reactivex.rxjava3.core.Single<SocketAddress>> selector)
Set a selector that resolves the origin address based on the outbound request.
|
static HttpProxy |
reverseProxy(HttpClient client)
Create a new
HttpProxy instance. |
static HttpProxy |
reverseProxy(io.vertx.httpproxy.ProxyOptions options,
HttpClient client)
Create a new
HttpProxy instance. |
String |
toString() |
public HttpProxy(io.vertx.httpproxy.HttpProxy delegate)
public HttpProxy(Object delegate)
public io.vertx.httpproxy.HttpProxy getDelegate()
public static HttpProxy reverseProxy(HttpClient client)
HttpProxy instance.client - the HttpClient that forwards outbound requests to the origin.public static HttpProxy reverseProxy(io.vertx.httpproxy.ProxyOptions options, HttpClient client)
HttpProxy instance.options - client - the HttpClient that forwards outbound requests to the origin.public HttpProxy origin(SocketAddress address)
SocketAddress of the origin.address - the SocketAddress of the originpublic HttpProxy origin(int port, String host)
port - the port number of the origin serverhost - the host name of the origin serverpublic HttpProxy originSelector(Function<HttpServerRequest,io.reactivex.rxjava3.core.Single<SocketAddress>> selector)
selector - the selectorpublic HttpProxy addInterceptor(ProxyInterceptor interceptor)
interceptor - public void handle(HttpServerRequest outboundRequest)
HttpServerRequest.handle in interface io.vertx.core.Handler<HttpServerRequest>outboundRequest - the outbound HttpServerRequestpublic static HttpProxy newInstance(io.vertx.httpproxy.HttpProxy arg)
Copyright © 2022 Eclipse. All rights reserved.