public class

AbstractRefCallback

extends Object
implements RefCallback
java.lang.Object
   ↳ com.atlassian.bitbucket.repository.AbstractRefCallback

Class Overview

Convenience implementation of RefCallback that provides no-op implementations for all methods.

Summary

Public Constructors
AbstractRefCallback()
Public Methods
void onEnd(RefSummary summary)
Called after the final ref has been streamed.
boolean onRef(Ref ref)
Discards the provided ref.
void onStart(RefContext context)
Called before the first ref is streamed.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bitbucket.repository.RefCallback

Public Constructors

public AbstractRefCallback ()

Public Methods

public void onEnd (RefSummary summary)

Called after the final ref has been streamed.

Note: If there were no refs, this method may be called immediately after onStart(RefContext) without any calls to onRef(Ref).

Parameters
summary summarizes the request and the streamed refs
Throws
IOException

public boolean onRef (Ref ref)

Discards the provided ref.

Parameters
ref ignored
Returns
  • true if further refs should be streamed; otherwise, false to stop streaming
Throws
IOException

public void onStart (RefContext context)

Called before the first ref is streamed.

Parameters
context provides details about the request for which refs are being streamed
Throws
IOException