Class HttpProxy

    • Constructor Detail

      • HttpProxy

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

        public HttpProxy​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.httpproxy.HttpProxy getDelegate()
      • 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
      • 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
      • newInstance

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