- java.lang.Object
-
- io.vertx.mutiny.httpproxy.HttpProxy
-
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.mutiny.core.http.HttpServerRequest>,Consumer<io.vertx.mutiny.core.http.HttpServerRequest>
public class HttpProxy extends Object implements io.vertx.core.Handler<io.vertx.mutiny.core.http.HttpServerRequest>, Consumer<io.vertx.mutiny.core.http.HttpServerRequest>
Handles the HTTP reverse proxy logic between the user agent and the origin.
NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.smallrye.mutiny.vertx.TypeArg<HttpProxy>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(io.vertx.mutiny.core.http.HttpServerRequest item)HttpProxyaddInterceptor(ProxyInterceptor interceptor)booleanequals(Object o)io.vertx.httpproxy.HttpProxygetDelegate()voidhandle(io.vertx.mutiny.core.http.HttpServerRequest request)inthashCode()static HttpProxynewInstance(io.vertx.httpproxy.HttpProxy arg)HttpProxyorigin(int port, String host)HttpProxyorigin(io.vertx.mutiny.core.net.SocketAddress address)HttpProxyoriginSelector(Function<io.vertx.mutiny.core.http.HttpServerRequest,io.smallrye.mutiny.Uni<io.vertx.mutiny.core.net.SocketAddress>> selector)static HttpProxyreverseProxy(io.vertx.httpproxy.ProxyOptions options, io.vertx.mutiny.core.http.HttpClient client)static HttpProxyreverseProxy(io.vertx.mutiny.core.http.HttpClient client)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.smallrye.mutiny.vertx.TypeArg<HttpProxy> __TYPE_ARG
-
-
Constructor Detail
-
HttpProxy
public HttpProxy(io.vertx.httpproxy.HttpProxy delegate)
-
HttpProxy
public HttpProxy(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.httpproxy.HttpProxy getDelegate()
-
reverseProxy
public static HttpProxy reverseProxy(io.vertx.mutiny.core.http.HttpClient client)
- Parameters:
client- theHttpClientthat forwards outbound requests to the origin.- Returns:
- a reference to this, so the API can be used fluently.
-
reverseProxy
public static HttpProxy reverseProxy(io.vertx.httpproxy.ProxyOptions options, io.vertx.mutiny.core.http.HttpClient client)
- Parameters:
options-client- theHttpClientthat forwards outbound requests to the origin.- Returns:
- a reference to this, so the API can be used fluently.
-
origin
public HttpProxy origin(io.vertx.mutiny.core.net.SocketAddress address)
- Parameters:
address- theSocketAddressof the origin- Returns:
- a reference to this, so the API can be used fluently
-
origin
public HttpProxy origin(int port, String host)
- Parameters:
port- the port number of the origin serverhost- the host name of the origin server- Returns:
- a reference to this, so the API can be used fluently
-
originSelector
public HttpProxy originSelector(Function<io.vertx.mutiny.core.http.HttpServerRequest,io.smallrye.mutiny.Uni<io.vertx.mutiny.core.net.SocketAddress>> selector)
- Parameters:
selector- the selector- Returns:
- a reference to this, so the API can be used fluently
-
addInterceptor
public HttpProxy addInterceptor(ProxyInterceptor interceptor)
- Parameters:
interceptor-- Returns:
- a reference to this, so the API can be used fluently
-
handle
public void handle(io.vertx.mutiny.core.http.HttpServerRequest request)
- Specified by:
handlein interfaceio.vertx.core.Handler<io.vertx.mutiny.core.http.HttpServerRequest>- Parameters:
request- the outboundHttpServerRequest
-
accept
public void accept(io.vertx.mutiny.core.http.HttpServerRequest item)
-
newInstance
public static HttpProxy newInstance(io.vertx.httpproxy.HttpProxy arg)
-
-