public interface ProtocolV2Hook
UploadPack.setProtocolV2Hook(ProtocolV2Hook)
Modifier and Type | Field and Description |
---|---|
static ProtocolV2Hook |
DEFAULT
The default hook implementation that does nothing.
|
Modifier and Type | Method and Description |
---|---|
default void |
onCapabilities(CapabilitiesV2Request req) |
default void |
onFetch(FetchV2Request req) |
default void |
onLsRefs(LsRefsV2Request req) |
static final ProtocolV2Hook DEFAULT
default void onCapabilities(CapabilitiesV2Request req) throws ServiceMayNotContinueException
req
- the capabilities requestServiceMayNotContinueException
- abort; the message will be sent to the userdefault void onLsRefs(LsRefsV2Request req) throws ServiceMayNotContinueException
req
- the ls-refs requestServiceMayNotContinueException
- abort; the message will be sent to the userdefault void onFetch(FetchV2Request req) throws ServiceMayNotContinueException
req
- the fetch requestServiceMayNotContinueException
- abort; the message will be sent to the userCopyright © 2020 Eclipse JGit Project. All rights reserved.