java.lang.Object
org.zalando.logbook.core.PathFilters
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.zalando.logbook.PathFilterstatic org.zalando.logbook.PathFilterFilter/replace by array matching.static org.zalando.logbook.PathFilterreplace(String expression, UnaryOperator<String> replacementFunction) Filter/replace by applying function.
-
Method Details
-
defaultValue
public static org.zalando.logbook.PathFilter defaultValue() -
replace
@API(status=EXPERIMENTAL) public static org.zalando.logbook.PathFilter replace(String expression, 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 expressionreplacement- value to insert for filtered segments- Returns:
- a
PathFilterthat replaces segments
-
replace
@API(status=EXPERIMENTAL) public static org.zalando.logbook.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
-