Class FastCompactingJsonBodyFilter

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

@API(status=EXPERIMENTAL) public final class FastCompactingJsonBodyFilter extends Object implements org.zalando.logbook.BodyFilter
Fast alternative to CompactingJsonBodyFilter which just replaces all new lines, rather than parsing and rewriting the JSON body.
See Also:
  • Constructor Details

    • FastCompactingJsonBodyFilter

      public FastCompactingJsonBodyFilter()
  • Method Details

    • filter

      public String filter(@Nullable String contentType, String body)
      Specified by:
      filter in interface org.zalando.logbook.BodyFilter