public class AbstractContentTreeCallback extends Object implements ContentTreeCallback
ContentTreeCallback that provides no-op implementations for all methods.| Constructor and Description |
|---|
AbstractContentTreeCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
onEnd(ContentTreeSummary summary)
Called after the final
tree node has been streamed. |
void |
onStart(ContentTreeContext context)
Called before the first
ContentTreeCallback.onTreeNode(ContentTreeNode). |
boolean |
onTreeNode(ContentTreeNode node)
Discards the provided
ContentTreeNode and returns true to continue streaming. |
public void onEnd(@Nonnull ContentTreeSummary summary) throws IOException
ContentTreeCallbacktree node has been streamed.
Note: If the tree was empty, this method may be called immediately after ContentTreeCallback.onStart(ContentTreeContext)
without any calls to ContentTreeCallback.onTreeNode(ContentTreeNode).
onEnd in interface ContentTreeCallbacksummary - summarizes the tree request and the streamed nodesIOException - may be thrown by implementations which perform I/O.public void onStart(@Nonnull ContentTreeContext context) throws IOException
ContentTreeCallbackContentTreeCallback.onTreeNode(ContentTreeNode).onStart in interface ContentTreeCallbackcontext - provides details about the tree request for which nodes are being streamedIOException - may be thrown by implementations which perform I/O.public boolean onTreeNode(@Nonnull ContentTreeNode node) throws IOException
ContentTreeNode and returns true to continue streaming.onTreeNode in interface ContentTreeCallbacknode - the current tree nodetrue if further nodes should be streamed; otherwise, false to stop streamingIOException - may be thrown by implementations which perform I/O operations, such as streaming tree nodesCopyright © 2019 Atlassian. All rights reserved.