@Deprecated public interface

DiffContentCallback2

implements DiffContentCallback
com.atlassian.stash.content.DiffContentCallback2
Known Indirect Subclasses

Class Overview

DiffContentCallback2 adds onStart(DiffContext) and onEnd(DiffSummary) methods. The new methods bookend the existing onDiffStart(Path, Path) and onDiffEnd(boolean) methods. onStart(DiffContext) will be called before the first diff is streamed and onEnd(DiffSummary) will be called after all diffs have been streamed.

Note: This interface is transitional and will be folded back into DiffContentCallback in Stash 3.0. Implementors are strongly encouraged to extend from AbstractDiffContentCallback. This interface will change over time, and any class implementing it directly will be broken by those changes. Extending from the abstract class will help minimize such breakages.

Summary

Public Methods
void onEnd(DiffSummary summary)
Called after the final onDiffEnd(boolean), after all diffs have been streamed.
void onStart(DiffContext context)
Called before the first onDiffStart(Path, Path).
[Expand]
Inherited Methods
From interface com.atlassian.stash.content.DiffContentCallback

Public Methods

public void onEnd (DiffSummary summary)

Called after the final onDiffEnd(boolean), after all diffs have been streamed.

Parameters
summary summarizes the request and the streamed diff
Throws
IOException May be thrown by implementations which perform I/O.

public void onStart (DiffContext context)

Called before the first onDiffStart(Path, Path).

Parameters
context provides details about the diff request for which results are being streamed
Throws
IOException May be thrown by implementations which perform I/O.