Class HeadersInterceptor


  • public class HeadersInterceptor
    extends Object
    Used to create interceptors to modify request and response headers.

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

    • Field Detail

    • Constructor Detail

      • HeadersInterceptor

        public HeadersInterceptor​(Object delegate)
    • Method Detail

      • hashCode

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

        public static ProxyInterceptor changeHeaders​(Handler<MultiMap> changeRequestHeaders,
                                                     Handler<MultiMap> changeResponseHeaders)
        Apply callbacks to change the request and response headers when the proxy receives them.
        Parameters:
        changeRequestHeaders - the operation to apply to the request headers
        changeResponseHeaders - the operation to apply to the response headers
        Returns:
        the created interceptor
      • filterRequestHeaders

        public static ProxyInterceptor filterRequestHeaders​(Set<CharSequence> requestHeaders)
        Filter the request headers in the given set.
        Parameters:
        requestHeaders - a set of the headers that need to be filtered
        Returns:
        the created interceptor
      • filterResponseHeaders

        public static ProxyInterceptor filterResponseHeaders​(Set<CharSequence> responseHeaders)
        Filter the response headers in the given set.
        Parameters:
        responseHeaders - a set of the headers that need to be filtered
        Returns:
        the created interceptor
      • filterHeaders

        public static ProxyInterceptor filterHeaders​(Set<CharSequence> requestHeaders,
                                                     Set<CharSequence> responseHeaders)
        Filter the request and response headers in the given sets.
        Parameters:
        requestHeaders - a set of the request headers that need to be filtered
        responseHeaders - a set of the response headers that need to be filtered
        Returns:
        the created interceptor