Class HttpProxy

java.lang.Object
io.vertx.mutiny.httpproxy.HttpProxy
All Implemented Interfaces:
MutinyDelegate, io.vertx.core.Handler<HttpServerRequest>, Consumer<HttpServerRequest>

public class HttpProxy extends Object implements MutinyDelegate, io.vertx.core.Handler<HttpServerRequest>, Consumer<HttpServerRequest>
Handles the HTTP reverse proxy logic between the user agent and the origin.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • HttpProxy

      public HttpProxy(io.vertx.httpproxy.HttpProxy delegate)
    • HttpProxy

      public HttpProxy(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.httpproxy.HttpProxy getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • reverseProxy

      public static HttpProxy reverseProxy(HttpClient client)
      Parameters:
      client - the HttpClient that 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, HttpClient client)
      Parameters:
      options -
      client - the HttpClient that forwards outbound requests to the origin.
      Returns:
      a reference to this, so the API can be used fluently.
    • origin

      public HttpProxy origin(SocketAddress address)
      Parameters:
      address - the SocketAddress of 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 server
      host - the host name of the origin server
      Returns:
      a reference to this, so the API can be used fluently
    • originSelector

      public HttpProxy originSelector(Function<HttpServerRequest,io.smallrye.mutiny.Uni<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(HttpServerRequest request)
      Specified by:
      handle in interface io.vertx.core.Handler<HttpServerRequest>
      Parameters:
      request - the outbound HttpServerRequest
    • accept

      public void accept(HttpServerRequest item)
      Specified by:
      accept in interface Consumer<HttpServerRequest>
    • newInstance

      public static HttpProxy newInstance(io.vertx.httpproxy.HttpProxy arg)