Package org.eclipse.jgit.transport
Class UploadPack.ReachableCommitRequestValidator
java.lang.Object
org.eclipse.jgit.transport.UploadPack.ReachableCommitRequestValidator
- All Implemented Interfaces:
UploadPack.RequestValidator
- Enclosing class:
- UploadPack
public static final class UploadPack.ReachableCommitRequestValidator
extends Object
implements UploadPack.RequestValidator
Validator corresponding to
UploadPack.RequestPolicy.REACHABLE_COMMIT
.- Since:
- 3.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkWants
(UploadPack up, List<ObjectId> wants) Check a list of client wants against the request policy.
-
Constructor Details
-
ReachableCommitRequestValidator
public ReachableCommitRequestValidator()
-
-
Method Details
-
checkWants
public void checkWants(UploadPack up, List<ObjectId> wants) throws PackProtocolException, IOException Description copied from interface:UploadPack.RequestValidator
Check a list of client wants against the request policy.- Specified by:
checkWants
in interfaceUploadPack.RequestValidator
- Parameters:
up
-UploadPack
instance.wants
- objects the client requested that were not advertised.- Throws:
PackProtocolException
- if one or more wants is not valid.IOException
- if a low-level exception occurred.
-