Package org.zalando.logbook.core
Class PathFilters
java.lang.Object
org.zalando.logbook.core.PathFilters
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathFilterstatic PathFilterFilter/replace by array matching.static PathFilterreplace(String expression, UnaryOperator<String> replacementFunction) Filter/replace by applying function.
-
Method Details
-
defaultValue
-
replace
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 expressionreplacement- value to insert for filtered segments- Returns:
- a
PathFilterthat replaces segments
-
replace
@API(status=EXPERIMENTAL) public static PathFilter replace(String expression, UnaryOperator<String> replacementFunction) Filter/replace by applying function. Accept filters in the form
Where
secret(including curly braces) gets replaced by value applying function.- Parameters:
expression- filter expressionreplacementFunction- function to apply for filtered segments- Returns:
- a
PathFilterthat replaces segments
-