Package org.eclipse.jgit.transport
Class UploadPack.AdvertisedRequestValidator
- java.lang.Object
-
- org.eclipse.jgit.transport.UploadPack.AdvertisedRequestValidator
-
- All Implemented Interfaces:
UploadPack.RequestValidator
- Enclosing class:
- UploadPack
public static final class UploadPack.AdvertisedRequestValidator extends Object implements UploadPack.RequestValidator
Validator corresponding toUploadPack.RequestPolicy.ADVERTISED
.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description AdvertisedRequestValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkWants(UploadPack up, List<ObjectId> wants)
Check a list of client wants against the request policy.
-
-
-
Method Detail
-
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.
-
-