Top Description Fields Methods
org.eclipse.jgit.transport

public Interface ProtocolV2Hook

Known Direct Implementers
org.eclipse.jgit.transport.ProtocolV2HookChain

Hook to allow callers to be notified on Git protocol v2 requests.
Since
5.1
See Also
UploadPack#setProtocolV2Hook(ProtocolV2Hook)

Field Summary

Modifier and TypeField and Description
public static final ProtocolV2Hook
DEFAULT

The default hook implementation that does nothing.

Method Summary

Modifier and TypeMethod and Description
public default void
onCapabilities(CapabilitiesV2Request
the capabilities request
req
)

Handle capabilities request

public default void
onFetch(FetchV2Request
the fetch request
req
)

Handle fetch request

public default void
onLsRefs(LsRefsV2Request
the ls-refs request
req
)

Handle ls-refs request

public default void
onObjectInfo(ObjectInfoRequest
the object-info request
req
)

Handle object-info request

Field Detail

DEFAULTback to summary
public static final ProtocolV2Hook DEFAULT

The default hook implementation that does nothing.

Method Detail

onCapabilitiesback to summary
public default void onCapabilities(CapabilitiesV2Request req) throws ServiceMayNotContinueException

Handle capabilities request

Parameters
req:CapabilitiesV2Request

the capabilities request

Exceptions
ServiceMayNotContinueException:
abort; the message will be sent to the user
Since
5.1
onFetchback to summary
public default void onFetch(FetchV2Request req) throws ServiceMayNotContinueException

Handle fetch request

Parameters
req:FetchV2Request

the fetch request

Exceptions
ServiceMayNotContinueException:
abort; the message will be sent to the user
onLsRefsback to summary
public default void onLsRefs(LsRefsV2Request req) throws ServiceMayNotContinueException

Handle ls-refs request

Parameters
req:LsRefsV2Request

the ls-refs request

Exceptions
ServiceMayNotContinueException:
abort; the message will be sent to the user
Since
5.1
onObjectInfoback to summary
public default void onObjectInfo(ObjectInfoRequest req) throws ServiceMayNotContinueException

Handle object-info request

Parameters
req:ObjectInfoRequest

the object-info request

Exceptions
ServiceMayNotContinueException:
abort; the message will be sent to the user
Since
5.13