Class PathInterceptor


  • public class PathInterceptor
    extends Object
    Used to create interceptors to modify the request path.

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

      • PathInterceptor

        public PathInterceptor​(Object delegate)
    • Method Detail

      • hashCode

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

        public static ProxyInterceptor changePath​(java.util.function.Function<String,​String> pattern)
        Apply a callback to change the request URI when the proxy receives it.
        Parameters:
        pattern - the operation that applied to the path
        Returns:
        the created interceptor
      • removePrefix

        public static ProxyInterceptor removePrefix​(String prefix)
        Add a prefix to the URI.
        Parameters:
        prefix - the prefix that need to be added
        Returns:
        the created interceptor
      • addPrefix

        public static ProxyInterceptor addPrefix​(String prefix)
        Remove a prefix to the URI. Do nothing if it doesn't exist.
        Parameters:
        prefix - the prefix that need to be removed
        Returns:
        the created interceptor