Package org.eclipse.jgit.transport
Interface ProtocolV2Hook
-
- All Known Implementing Classes:
ProtocolV2HookChain
public interface ProtocolV2Hook
Hook to allow callers to be notified on Git protocol v2 requests.- Since:
- 5.1
- See Also:
UploadPack.setProtocolV2Hook(ProtocolV2Hook)
-
-
Field Summary
Fields Modifier and Type Field Description static ProtocolV2Hook
DEFAULT
The default hook implementation that does nothing.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onCapabilities(CapabilitiesV2Request req)
default void
onFetch(FetchV2Request req)
default void
onLsRefs(LsRefsV2Request req)
default void
onObjectInfo(ObjectInfoRequest req)
-
-
-
Field Detail
-
DEFAULT
static final ProtocolV2Hook DEFAULT
The default hook implementation that does nothing.
-
-
Method Detail
-
onCapabilities
default void onCapabilities(CapabilitiesV2Request req) throws ServiceMayNotContinueException
- Parameters:
req
- the capabilities request- Throws:
ServiceMayNotContinueException
- abort; the message will be sent to the user- Since:
- 5.1
-
onLsRefs
default void onLsRefs(LsRefsV2Request req) throws ServiceMayNotContinueException
- Parameters:
req
- the ls-refs request- Throws:
ServiceMayNotContinueException
- abort; the message will be sent to the user- Since:
- 5.1
-
onFetch
default void onFetch(FetchV2Request req) throws ServiceMayNotContinueException
- Parameters:
req
- the fetch request- Throws:
ServiceMayNotContinueException
- abort; the message will be sent to the user
-
onObjectInfo
default void onObjectInfo(ObjectInfoRequest req) throws ServiceMayNotContinueException
- Parameters:
req
- the object-info request- Throws:
ServiceMayNotContinueException
- abort; the message will be sent to the user- Since:
- 5.13
-
-