Class UploadValidators
java.lang.Object
com.google.gerrit.server.git.validators.UploadValidators
- All Implemented Interfaces:
org.eclipse.jgit.transport.PreUploadHook
Collection of validators to run before Gerrit sends pack data to a client.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.eclipse.jgit.transport.PreUploadHook
NULL
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onBeginNegotiateRound
(org.eclipse.jgit.transport.UploadPack up, Collection<? extends org.eclipse.jgit.lib.ObjectId> wants, int cntOffered) void
onEndNegotiateRound
(org.eclipse.jgit.transport.UploadPack up, Collection<? extends org.eclipse.jgit.lib.ObjectId> wants, int cntCommon, int cntNotFound, boolean ready) void
onSendPack
(org.eclipse.jgit.transport.UploadPack up, Collection<? extends org.eclipse.jgit.lib.ObjectId> wants, Collection<? extends org.eclipse.jgit.lib.ObjectId> haves)
-
Method Details
-
onSendPack
public void onSendPack(org.eclipse.jgit.transport.UploadPack up, Collection<? extends org.eclipse.jgit.lib.ObjectId> wants, Collection<? extends org.eclipse.jgit.lib.ObjectId> haves) throws org.eclipse.jgit.transport.ServiceMayNotContinueException - Specified by:
onSendPack
in interfaceorg.eclipse.jgit.transport.PreUploadHook
- Throws:
org.eclipse.jgit.transport.ServiceMayNotContinueException
-
onBeginNegotiateRound
public void onBeginNegotiateRound(org.eclipse.jgit.transport.UploadPack up, Collection<? extends org.eclipse.jgit.lib.ObjectId> wants, int cntOffered) throws org.eclipse.jgit.transport.ServiceMayNotContinueException - Specified by:
onBeginNegotiateRound
in interfaceorg.eclipse.jgit.transport.PreUploadHook
- Throws:
org.eclipse.jgit.transport.ServiceMayNotContinueException
-
onEndNegotiateRound
public void onEndNegotiateRound(org.eclipse.jgit.transport.UploadPack up, Collection<? extends org.eclipse.jgit.lib.ObjectId> wants, int cntCommon, int cntNotFound, boolean ready) throws org.eclipse.jgit.transport.ServiceMayNotContinueException - Specified by:
onEndNegotiateRound
in interfaceorg.eclipse.jgit.transport.PreUploadHook
- Throws:
org.eclipse.jgit.transport.ServiceMayNotContinueException
-