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