java.lang.Object
org.zalando.logbook.json.JsonBodyFiltersJackson2
@Deprecated(since="4.0.0",
forRemoval=true)
public final class JsonBodyFiltersJackson2
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.zalando.logbook.BodyFilterDeprecated, for removal: This API element is subject to removal in a future version.static org.zalando.logbook.BodyFilterreplaceJsonNumberProperty(Predicate<String> predicate, Number replacement) Deprecated, for removal: This API element is subject to removal in a future version.static org.zalando.logbook.BodyFilterreplaceJsonNumberProperty(Set<String> properties, Number replacement) Deprecated, for removal: This API element is subject to removal in a future version.static org.zalando.logbook.BodyFilterreplaceJsonStringProperty(Predicate<String> predicate, String replacement) Deprecated, for removal: This API element is subject to removal in a future version.static org.zalando.logbook.BodyFilterreplaceJsonStringProperty(Set<String> properties, String replacement) Deprecated, for removal: This API element is subject to removal in a future version.Creates aBodyFilterthat replaces the properties in the json response with the replacement passed as argument.static org.zalando.logbook.BodyFilterreplacePrimitiveJsonProperty(Predicate<String> predicate, String replacement) Deprecated, for removal: This API element is subject to removal in a future version.static org.zalando.logbook.BodyFilterreplacePrimitiveJsonProperty(Predicate<String> predicate, BiFunction<String, String, String> replacement) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
accessToken
@API(status=MAINTAINED) public static org.zalando.logbook.BodyFilter accessToken()Deprecated, for removal: This API element is subject to removal in a future version. -
replaceJsonStringProperty
@API(status=MAINTAINED) public static org.zalando.logbook.BodyFilter replaceJsonStringProperty(Set<String> properties, String replacement) Deprecated, for removal: This API element is subject to removal in a future version.Creates aBodyFilterthat replaces the properties in the json response with the replacement passed as argument. ThisBodyFilterworks on all levels inside the json tree and it only works with string values
Example fromAccessTokenBodyFilterJackson2method:
Set<String> properties = new HashSet<>(); properties.add("access_token"); properties.add("open_id"); properties.add("id_token"); return replaceJsonStringProperty(properties, "XXX");- Parameters:
properties- JSON properties to replacereplacement- String to replace the properties values- Returns:
- BodyFilter generated
-
replaceJsonStringProperty
@API(status=EXPERIMENTAL) public static org.zalando.logbook.BodyFilter replaceJsonStringProperty(Predicate<String> predicate, String replacement) Deprecated, for removal: This API element is subject to removal in a future version. -
replaceJsonNumberProperty
@API(status=EXPERIMENTAL) public static org.zalando.logbook.BodyFilter replaceJsonNumberProperty(Set<String> properties, Number replacement) Deprecated, for removal: This API element is subject to removal in a future version. -
replaceJsonNumberProperty
@API(status=EXPERIMENTAL) public static org.zalando.logbook.BodyFilter replaceJsonNumberProperty(Predicate<String> predicate, Number replacement) Deprecated, for removal: This API element is subject to removal in a future version. -
replacePrimitiveJsonProperty
@API(status=EXPERIMENTAL) public static org.zalando.logbook.BodyFilter replacePrimitiveJsonProperty(Predicate<String> predicate, String replacement) Deprecated, for removal: This API element is subject to removal in a future version. -
replacePrimitiveJsonProperty
@API(status=EXPERIMENTAL) public static org.zalando.logbook.BodyFilter replacePrimitiveJsonProperty(Predicate<String> predicate, BiFunction<String, String, String> replacement) Deprecated, for removal: This API element is subject to removal in a future version.
-