Top Description Fields Methods
org.eclipse.jgit.transport

public Interface AdvertiseRefsHook

Known Direct Implementers
org.eclipse.jgit.transport.AdvertiseRefsHookChain, org.eclipse.jgit.transport.AbstractAdvertiseRefsHook
Imports
java.io.IOException

Hook to allow callers to take over advertising refs to the client.
Since
2.0

Field Summary

Modifier and TypeField and Description
public static final AdvertiseRefsHook
DEFAULT

A simple hook that advertises the default refs.

Method Summary

Modifier and TypeMethod and Description
public void
advertiseRefs(UploadPack uploadPack)

Advertise refs for upload-pack.

public void
advertiseRefs(ReceivePack receivePack)

Advertise refs for receive-pack.

Field Detail

DEFAULTback to summary
public static final AdvertiseRefsHook DEFAULT

A simple hook that advertises the default refs.

The method implementations do nothing to preserve the default behavior; see UploadPack#setAdvertisedRefs(java.util.Map) and ReceivePack#setAdvertisedRefs(java.util.Map, java.util.Set).

Method Detail

advertiseRefsback to summary
public void advertiseRefs(UploadPack uploadPack) throws ServiceMayNotContinueException

Advertise refs for upload-pack.

Parameters
uploadPack:UploadPack

instance on which to call org.eclipse.jgit.transport.UploadPack#setAdvertisedRefs(java.util.Map) if necessary.

Exceptions
ServiceMayNotContinueException:
abort; the message will be sent to the user.
advertiseRefsback to summary
public void advertiseRefs(ReceivePack receivePack) throws ServiceMayNotContinueException, IOException

Advertise refs for receive-pack.

Parameters
receivePack:ReceivePack

instance on which to call org.eclipse.jgit.transport.ReceivePack#setAdvertisedRefs(java.util.Map, java.util.Set) if necessary.

Exceptions
ServiceMayNotContinueException:
abort; the message will be sent to the user.
IOException:
if an IO error occurred
Since
5.6