Class ProxyInterceptor


  • public class ProxyInterceptor
    extends Object
    A HttpProxy interceptor.

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

    • Constructor Detail

      • ProxyInterceptor

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

        public ProxyInterceptor​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.httpproxy.ProxyInterceptor getDelegate()
      • hashCode

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

        @CheckReturnValue
        public io.smallrye.mutiny.Uni<ProxyResponse> handleProxyRequest​(ProxyContext context)
        Handle the proxy request at the stage of this interceptor.

        Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

        Parameters:
        context - the proxy context
        Returns:
        the uni firing the result of the operation when completed, or a failure if the operation failed.
      • handleProxyRequestAndAwait

        public ProxyResponse handleProxyRequestAndAwait​(ProxyContext context)
        Blocking variant of handleProxyRequest(io.vertx.mutiny.httpproxy.ProxyContext).

        This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

        Parameters:
        context - the proxy context
        Returns:
        the ProxyResponse instance produced by the operation.
      • handleProxyResponse

        @CheckReturnValue
        public io.smallrye.mutiny.Uni<Void> handleProxyResponse​(ProxyContext context)
        Handle the proxy response at the stage of this interceptor.

        Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

        Parameters:
        context - the proxy context
        Returns:
        the uni firing the result of the operation when completed, or a failure if the operation failed.
      • handleProxyResponseAndAwait

        public Void handleProxyResponseAndAwait​(ProxyContext context)
        Blocking variant of handleProxyResponse(io.vertx.mutiny.httpproxy.ProxyContext).

        This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

        Parameters:
        context - the proxy context
        Returns:
        the Void instance produced by the operation.
      • newInstance

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