me.desair.tus.server.expiration.ExpirationOptionsRequestHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tus-java-server Show documentation
Show all versions of tus-java-server Show documentation
Server-side implementation of the open file upload protocol tus (https://tus.io/)
that supports resumable file uploads for small and very large files
package me.desair.tus.server.expiration;
import me.desair.tus.server.util.AbstractExtensionRequestHandler;
/**
* The Server MAY remove unfinished uploads once they expire. In order to indicate this behavior to the Client,
* the Server MUST add expiration to the Tus-Extension header.
*/
public class ExpirationOptionsRequestHandler extends AbstractExtensionRequestHandler {
@Override
protected void appendExtensions(StringBuilder extensionBuilder) {
addExtension(extensionBuilder, "expiration");
}
}