Package io.vertx.rxjava3.httpproxy.interceptors

## Class PathInterceptor

- java.lang.Object
- - io.vertx.rxjava3.httpproxy.interceptors.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 Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static io.vertx.lang.rx.TypeArg<PathInterceptor>` | `__TYPE_ARG` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PathInterceptor​(PathInterceptor delegate)` |
    `PathInterceptor​(Object delegate)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static ProxyInterceptor` | `addPrefix​(String prefix)` | Remove a prefix to the URI.
    `static ProxyInterceptor` | `changePath​(java.util.function.Function<String,​String> pattern)` | Apply a callback to change the request URI when the proxy receives it.
    `boolean` | `equals​(Object o)` |
    `PathInterceptor` | `getDelegate()` |
    `int` | `hashCode()` |
    `static PathInterceptor` | `newInstance​(PathInterceptor arg)` |
    `static ProxyInterceptor` | `removePrefix​(String prefix)` | Add a prefix to the URI.
    `String` | `toString()` |

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final io.vertx.lang.rx.TypeArg<PathInterceptor> __TYPE_ARG

  - ### Constructor Detail

    - #### PathInterceptor

          public PathInterceptor​(PathInterceptor delegate)

    - #### PathInterceptor

          public PathInterceptor​(Object delegate)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### getDelegate

          public PathInterceptor getDelegate()

    - #### 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

    - #### newInstance

          public static PathInterceptor newInstance​(PathInterceptor arg)