Package me.desair.tus.server.termination
Class TerminationExtension
java.lang.Object
me.desair.tus.server.util.AbstractTusExtension
me.desair.tus.server.termination.TerminationExtension
- All Implemented Interfaces:
TusExtension
This extension defines a way for the Client to terminate completed and unfinished uploads
allowing the Server to free up used resources.
If this extension is supported by the Server, it MUST be announced by adding "termination" to the Tus-Extension header.
If this extension is supported by the Server, it MUST be announced by adding "termination" to the Tus-Extension header.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe minimal list of HTTP methods that this extension needs to function properlygetName()
The name of the Tus extension that can be used to disable or enable the extensionprotected void
initRequestHandlers
(List<RequestHandler> requestHandlers) protected void
initValidators
(List<RequestValidator> requestValidators) Methods inherited from class me.desair.tus.server.util.AbstractTusExtension
handleError, process, validate
-
Constructor Details
-
TerminationExtension
public TerminationExtension()
-
-
Method Details
-
getName
Description copied from interface:TusExtension
The name of the Tus extension that can be used to disable or enable the extension- Returns:
- The name of the extension
-
getMinimalSupportedHttpMethods
Description copied from interface:TusExtension
The minimal list of HTTP methods that this extension needs to function properly- Returns:
- The list of HTTP methods required by this extension
-
initValidators
- Specified by:
initValidators
in classAbstractTusExtension
-
initRequestHandlers
- Specified by:
initRequestHandlers
in classAbstractTusExtension
-