Package me.desair.tus.server.expiration
Class ExpirationRequestHandler
java.lang.Object
me.desair.tus.server.util.AbstractRequestHandler
me.desair.tus.server.expiration.ExpirationRequestHandler
- All Implemented Interfaces:
RequestHandler
The Upload-Expires response header indicates the time after which the unfinished upload expires.
This header MUST be included in every PATCH response if the upload is going to expire. Its value
MAY change over time. If the expiration is known at the creation, the Upload-Expires header MUST
be included in the response to the initial POST request. Its value MAY change over time. The
value of the Upload-Expires header MUST be in RFC 7231
(https://tools.ietf.org/html/rfc7231#section-7.1.1.1) datetime format.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
process
(HttpMethod method, TusServletRequest servletRequest, TusServletResponse servletResponse, UploadStorageService uploadStorageService, String ownerKey) boolean
supports
(HttpMethod method)
-
Constructor Details
-
ExpirationRequestHandler
public ExpirationRequestHandler()
-
-
Method Details
-
supports
-
process
public void process(HttpMethod method, TusServletRequest servletRequest, TusServletResponse servletResponse, UploadStorageService uploadStorageService, String ownerKey) throws IOException, TusException - Throws:
IOException
TusException
-
isErrorHandler
public boolean isErrorHandler()- Specified by:
isErrorHandler
in interfaceRequestHandler
- Overrides:
isErrorHandler
in classAbstractRequestHandler
-