public interface TusExtension
| Modifier and Type | Method and Description |
|---|---|
Collection<HttpMethod> |
getMinimalSupportedHttpMethods()
The minimal list of HTTP methods that this extension needs to function properly
|
String |
getName()
The name of the Tus extension that can be used to disable or enable the extension
|
void |
handleError(HttpMethod method,
TusServletRequest servletRequest,
TusServletResponse servletResponse,
UploadStorageService uploadStorageService,
String ownerKey)
If a request is invalid, or when processing the request fails, it might be necessary to react to this failure.
|
void |
process(HttpMethod method,
TusServletRequest servletRequest,
TusServletResponse servletResponse,
UploadStorageService uploadStorageService,
String ownerKey)
Process the given request
|
void |
validate(HttpMethod method,
javax.servlet.http.HttpServletRequest servletRequest,
UploadStorageService uploadStorageService,
String ownerKey)
Validate the given request
|
String getName()
void validate(HttpMethod method, javax.servlet.http.HttpServletRequest servletRequest, UploadStorageService uploadStorageService, String ownerKey) throws TusException, IOException
method - The HTTP method of this request (taking into account overrides)servletRequest - The HTTP requestuploadStorageService - The current upload storage serviceownerKey - Identifier of the owner of this uploadTusException - When the request is invalidIOException - When unable to read upload informationvoid process(HttpMethod method, TusServletRequest servletRequest, TusServletResponse servletResponse, UploadStorageService uploadStorageService, String ownerKey) throws IOException, TusException
method - The HTTP method of this request (taking into account overrides)servletRequest - The HTTP requestservletResponse - The HTTP responseuploadStorageService - The current upload storage serviceownerKey - Identifier of the owner of this uploadTusException - When processing the request failsIOException - When unable to read upload informationvoid handleError(HttpMethod method, TusServletRequest servletRequest, TusServletResponse servletResponse, UploadStorageService uploadStorageService, String ownerKey) throws IOException, TusException
method - The HTTP method of this request (taking into account overrides)servletRequest - The HTTP requestservletResponse - The HTTP responseuploadStorageService - The current upload storage serviceownerKey - Identifier of the owner of this uploadTusException - When handling the error failsIOException - When unable to read upload informationCollection<HttpMethod> getMinimalSupportedHttpMethods()
Copyright © 2019. All rights reserved.