Class UploadValidators
- java.lang.Object
-
- com.google.gerrit.server.git.validators.UploadValidators
-
- All Implemented Interfaces:
org.eclipse.jgit.transport.PreUploadHook
public class UploadValidators extends Object implements org.eclipse.jgit.transport.PreUploadHook
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUploadValidators.Factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonBeginNegotiateRound(org.eclipse.jgit.transport.UploadPack up, Collection<? extends org.eclipse.jgit.lib.ObjectId> wants, int cntOffered)voidonEndNegotiateRound(org.eclipse.jgit.transport.UploadPack up, Collection<? extends org.eclipse.jgit.lib.ObjectId> wants, int cntCommon, int cntNotFound, boolean ready)voidonSendPack(org.eclipse.jgit.transport.UploadPack up, Collection<? extends org.eclipse.jgit.lib.ObjectId> wants, Collection<? extends org.eclipse.jgit.lib.ObjectId> haves)
-
-
-
Method Detail
-
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:
onSendPackin 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:
onBeginNegotiateRoundin 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:
onEndNegotiateRoundin interfaceorg.eclipse.jgit.transport.PreUploadHook- Throws:
org.eclipse.jgit.transport.ServiceMayNotContinueException
-
-