public interface RequestValidator
| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(HttpMethod method)
Test if this validator supports the given HTTP method
|
void |
validate(HttpMethod method,
javax.servlet.http.HttpServletRequest request,
UploadStorageService uploadStorageService,
String ownerKey)
Validate if the request should be processed
|
void validate(HttpMethod method, javax.servlet.http.HttpServletRequest request, UploadStorageService uploadStorageService, String ownerKey) throws TusException, IOException
method - The HTTP method of this request (do not use HttpServletRequest.getMethod()!)request - The HttpServletRequest to validateuploadStorageService - The current upload storage serviceownerKey - A key representing the owner of the uploadTusException - When validation fails and the request should not be processedIOExceptionboolean supports(HttpMethod method)
method - The current HTTP methodCopyright © 2023. All rights reserved.