|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.transport.AdvertiseRefsHookChain
public class AdvertiseRefsHookChain
AdvertiseRefsHook that delegates to a list of other hooks.
Hooks are run in the order passed to the constructor. A hook may inspect or
modify the results of the previous hooks in the chain by calling
UploadPack.getAdvertisedRefs(), or
BaseReceivePack.getAdvertisedRefs() or
BaseReceivePack.getAdvertisedObjects().
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jgit.transport.AdvertiseRefsHook |
|---|
DEFAULT |
| Method Summary | |
|---|---|
void |
advertiseRefs(BaseReceivePack rp)
Advertise refs for receive-pack. |
void |
advertiseRefs(UploadPack rp)
Advertise refs for upload-pack. |
static AdvertiseRefsHook |
newChain(List<? extends AdvertiseRefsHook> hooks)
Create a new hook chaining the given hooks together. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AdvertiseRefsHook newChain(List<? extends AdvertiseRefsHook> hooks)
hooks - hooks to execute, in order.
public void advertiseRefs(BaseReceivePack rp)
throws ServiceMayNotContinueException
AdvertiseRefsHook
advertiseRefs in interface AdvertiseRefsHookrp - instance on which to call
BaseReceivePack.setAdvertisedRefs(java.util.Map,java.util.Set)
if necessary.
ServiceMayNotContinueException - abort; the message will be sent to the user.
public void advertiseRefs(UploadPack rp)
throws ServiceMayNotContinueException
AdvertiseRefsHook
advertiseRefs in interface AdvertiseRefsHookrp - instance on which to call
UploadPack.setAdvertisedRefs(java.util.Map)
if necessary.
ServiceMayNotContinueException - abort; the message will be sent to the user.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||