Class BodyInterceptor


  • public class BodyInterceptor
    extends Object
    Used to create interceptors to modify request and response bodies.

    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<BodyInterceptor> __TYPE_ARG
    • Constructor Detail

      • BodyInterceptor

        public BodyInterceptor​(Object delegate)
    • Method Detail

      • hashCode

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

        public static ProxyInterceptor modifyBody​(BodyTransformer requestTransformer,
                                                  BodyTransformer responseTransformer)
        Apply callbacks to change the request and response bodies when the proxy receives them.
        Parameters:
        requestTransformer - the operation to apply to the request body
        responseTransformer - the operation to apply to the response body
        Returns:
        the created interceptor
      • modifyRequestBody

        public static ProxyInterceptor modifyRequestBody​(BodyTransformer requestTransformer)
        Apply callbacks to change the request body when the proxy receives it.
        Parameters:
        requestTransformer - the operation to apply to the request body
        Returns:
        the created interceptor
      • modifyResponseBody

        public static ProxyInterceptor modifyResponseBody​(BodyTransformer responseTransformer)
        Apply callbacks to change the response body when the proxy receives it.
        Parameters:
        responseTransformer - the operation to apply to the response body
        Returns:
        the created interceptor