public class ContentPreviewerAdapter extends Object implements ContentPreviewer
ContentPreviewer implementation in order for a user to implement only the methods
what he or she really needs.| Modifier | Constructor and Description |
|---|---|
protected |
ContentPreviewerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDone()
Determines if the previewer has been ready to produce the preview or
the preview has been already produced.
|
void |
onData(HttpData data)
Invoked after request/response data is received.
|
void |
onHeaders(HttpHeaders headers)
Invoked after request/response headers is received.
|
String |
produce()
Produces the preview of
RequestLog. |
public void onHeaders(HttpHeaders headers)
ContentPrevieweronHeaders in interface ContentPreviewerpublic void onData(HttpData data)
ContentPreviewerContentPreviewer.isDone() returns
true even if a new content is received.onData in interface ContentPreviewer@Nullable public String produce()
ContentPreviewerRequestLog.
Note that it is invoked when the request or response is ended
or the preview has been ready to be produced.produce in interface ContentPreviewernull if disabled.public boolean isDone()
ContentPreviewerisDone in interface ContentPreviewerCopyright © 2020 LeanCloud. All rights reserved.