- 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProtocolV2Hook
The default hook implementation that does nothing. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
Handle capabilities requestdefault void
onFetch
(FetchV2Request req) Handle fetch requestdefault void
onLsRefs
(LsRefsV2Request req) Handle ls-refs requestdefault void
Handle object-info request
-
Field Details
-
DEFAULT
The default hook implementation that does nothing.
-
-
Method Details
-
onCapabilities
Handle capabilities request- Parameters:
req
- the capabilities request- Throws:
ServiceMayNotContinueException
- abort; the message will be sent to the user- Since:
- 5.1
-
onLsRefs
Handle ls-refs request- Parameters:
req
- the ls-refs request- Throws:
ServiceMayNotContinueException
- abort; the message will be sent to the user- Since:
- 5.1
-
onFetch
Handle fetch request- Parameters:
req
- the fetch request- Throws:
ServiceMayNotContinueException
- abort; the message will be sent to the user
-
onObjectInfo
Handle object-info request- Parameters:
req
- the object-info request- Throws:
ServiceMayNotContinueException
- abort; the message will be sent to the user- Since:
- 5.13
-