Interface ContentPreviewer
public interface ContentPreviewer
Produces the preview of
RequestLog
.-
Method Summary
Modifier and Type Method Description static ContentPreviewer
disabled()
Returns a dummyContentPreviewer
which producesnull
.default boolean
isDisabled()
Returns whether thisContentPreviewer
isdisabled()
or not.void
onData(HttpData data)
Invoked after request/response data is received.String
produce()
Produces the preview of the request or response.
-
Method Details
-
disabled
Returns a dummyContentPreviewer
which producesnull
. -
isDisabled
default boolean isDisabled()Returns whether thisContentPreviewer
isdisabled()
or not. -
onData
Invoked after request/response data is received. -
produce
Produces the preview of the request or response.- Returns:
- the preview, or
null
if this previewer is disabled or does not produce anything
-