public class PostEmptyRequestValidator extends Object implements RequestValidator
| Constructor and Description |
|---|
PostEmptyRequestValidator() |
| 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
|
public void validate(HttpMethod method, javax.servlet.http.HttpServletRequest request, UploadStorageService uploadStorageService, String ownerKey) throws TusException
RequestValidatorvalidate in interface RequestValidatormethod - 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 processedpublic boolean supports(HttpMethod method)
RequestValidatorsupports in interface RequestValidatormethod - The current HTTP methodCopyright © 2019. All rights reserved.