Class ProxyInterceptor

  • All Implemented Interfaces:
    io.vertx.lang.rx.RxDelegate

    public class ProxyInterceptor
    extends Object
    implements io.vertx.lang.rx.RxDelegate
    A HttpProxy interceptor.

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

    • Field Detail

      • __TYPE_ARG

        public static final io.vertx.lang.rx.TypeArg<ProxyInterceptor> __TYPE_ARG
    • Constructor Detail

      • ProxyInterceptor

        public ProxyInterceptor​(Object delegate)
    • Method Detail

      • hashCode

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

        public ProxyInterceptor getDelegate()
        Specified by:
        getDelegate in interface io.vertx.lang.rx.RxDelegate
      • builder

        public static ProxyInterceptorBuilder builder()
        Create a builder for implementing common HTTP interception hooks such as modifying headers or transforming the HTTP entity stream.
        Returns:
        a builder for common interception
      • handleProxyRequest

        public Single<ProxyResponse> handleProxyRequest​(ProxyContext context)
        Handle the proxy request at the stage of this interceptor.
        Parameters:
        context - the proxy context
        Returns:
        when the request has actually been sent to the origin
      • rxHandleProxyRequest

        public Single<ProxyResponse> rxHandleProxyRequest​(ProxyContext context)
        Handle the proxy request at the stage of this interceptor.
        Parameters:
        context - the proxy context
        Returns:
        when the request has actually been sent to the origin
      • handleProxyResponse

        public Completable handleProxyResponse​(ProxyContext context)
        Handle the proxy response at the stage of this interceptor.
        Parameters:
        context - the proxy context
        Returns:
        when the response has actually been sent to the user-agent
      • rxHandleProxyResponse

        public Completable rxHandleProxyResponse​(ProxyContext context)
        Handle the proxy response at the stage of this interceptor.
        Parameters:
        context - the proxy context
        Returns:
        when the response has actually been sent to the user-agent