Class Jackson2JsonFieldBodyFilter

java.lang.Object
org.zalando.logbook.json.Jackson2JsonFieldBodyFilter
All Implemented Interfaces:
org.zalando.logbook.BodyFilter

@Deprecated(since="4.0.0", forRemoval=true) public class Jackson2JsonFieldBodyFilter extends Object implements org.zalando.logbook.BodyFilter
Deprecated, for removal: This API element is subject to removal in a future version.
Thread-safe filter for JSON fields. Filters on property names.

Output is always compacted, even in case of invalid JSON, so this filter should not be used in conjunction with JsonCompactorJackson2.
  • Constructor Details

    • Jackson2JsonFieldBodyFilter

      public Jackson2JsonFieldBodyFilter(Collection<String> fieldNames, String replacement, com.fasterxml.jackson.core.JsonFactory factory, JsonGeneratorWrapperJackson2 jsonGeneratorWrapper)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Jackson2JsonFieldBodyFilter

      public Jackson2JsonFieldBodyFilter(Collection<String> fieldNames, String replacement, com.fasterxml.jackson.core.JsonFactory factory)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Jackson2JsonFieldBodyFilter

      public Jackson2JsonFieldBodyFilter(Collection<String> fieldNames, String replacement)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • filter

      public String filter(@Nullable String contentType, String body)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      filter in interface org.zalando.logbook.BodyFilter
    • filter

      public String filter(String body)
      Deprecated, for removal: This API element is subject to removal in a future version.