Class PathFilters

java.lang.Object
org.zalando.logbook.PathFilters

@API(status=EXPERIMENTAL)
public class PathFilters
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    static PathFilter defaultValue()  
    static PathFilter replace​(java.lang.String expression, java.lang.String replacement)
    Filter/replace by array matching.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • defaultValue

      public static PathFilter defaultValue()
    • replace

      @API(status=EXPERIMENTAL) public static PathFilter replace​(java.lang.String expression, java.lang.String replacement)
      Filter/replace by array matching. Accepts filters on the form /myApp/orders/{secret}/order.
      Where secret (including curly braces) gets replaced by the passed replacement.
      Parameters:
      expression - filter expression
      replacement - value to insert for filtered segments
      Returns:
      a PathFilter that replaces segments