org.eclipse.jgit.transport.ProtocolV2Hook that delegates to a list of
other hooks.
Hooks are run in the order passed to the constructor. If running a method on one hook throws an exception, execution of remaining hook methods is aborted.
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ProtocolV2Hook | Returns: a new hook chain of the given hooks.hooks to execute, in order. hooks)Create a new hook chaining the given hooks together. |
| public void | onCapabilities(CapabilitiesV2Request
the capabilities request req)Overrides default org. Handle capabilities request |
| public void | onFetch(FetchV2Request
the fetch request req)Overrides default org. Handle fetch request |
| public void | onLsRefs(LsRefsV2Request
the ls-refs request req)Overrides default org. Handle ls-refs request |
| public void | onObjectInfo(ObjectInfoRequest
the object-info request req)Overrides default org. Handle object-info request |
| hooks | back to summary |
|---|---|
| private final List<? extends ProtocolV2Hook> hooks | |
| ProtocolV2HookChain | back to summary |
|---|---|
| private ProtocolV2HookChain(List<? extends ProtocolV2Hook> hooks) | |
| newChain | back to summary |
|---|---|
| public static ProtocolV2Hook newChain(List<? extends ProtocolV2Hook> hooks) Create a new hook chaining the given hooks together.
| |
| onCapabilities | back to summary |
|---|---|
| public void onCapabilities(CapabilitiesV2Request req) throws ServiceMayNotContinueException Overrides default org. Doc from org. Handle capabilities request
| |
| onFetch | back to summary |
|---|---|
| public void onFetch(FetchV2Request req) throws ServiceMayNotContinueException Overrides default org. Doc from org. Handle fetch request
| |
| onLsRefs | back to summary |
|---|---|
| public void onLsRefs(LsRefsV2Request req) throws ServiceMayNotContinueException Overrides default org. Doc from org. Handle ls-refs request
| |
| onObjectInfo | back to summary |
|---|---|
| public void onObjectInfo(ObjectInfoRequest req) throws ServiceMayNotContinueException Overrides default org. Doc from org. Handle object-info request
| |