Class PartialUploadsExistValidator
java.lang.Object
me.desair.tus.server.concatenation.validation.PartialUploadsExistValidator
- All Implemented Interfaces:
RequestValidator
Validate that the IDs specified in the Upload-Concat header map to an existing upload
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleansupports(HttpMethod method) Test if this validator supports the given HTTP methodvoidvalidate(HttpMethod method, jakarta.servlet.http.HttpServletRequest request, UploadStorageService uploadStorageService, String ownerKey) Validate if the request should be processed
-
Constructor Details
-
PartialUploadsExistValidator
public PartialUploadsExistValidator()
-
-
Method Details
-
validate
public void validate(HttpMethod method, jakarta.servlet.http.HttpServletRequest request, UploadStorageService uploadStorageService, String ownerKey) throws IOException, TusException Description copied from interface:RequestValidatorValidate if the request should be processed- Specified by:
validatein interfaceRequestValidator- Parameters:
method- The HTTP method of this request (do not useHttpServletRequest.getMethod()!)request- TheHttpServletRequestto validateuploadStorageService- The current upload storage serviceownerKey- A key representing the owner of the upload- Throws:
TusException- When validation fails and the request should not be processedIOException
-
supports
Description copied from interface:RequestValidatorTest if this validator supports the given HTTP method- Specified by:
supportsin interfaceRequestValidator- Parameters:
method- The current HTTP method- Returns:
- true if supported, false otherwise
-