Package me.desair.tus.server.core
Class CoreHeadRequestHandler
java.lang.Object
me.desair.tus.server.util.AbstractRequestHandler
me.desair.tus.server.core.CoreHeadRequestHandler
- All Implemented Interfaces:
RequestHandler
A HEAD request is used to determine the offset at which the upload should be continued.
The Server MUST always include the Upload-Offset header in the response for a HEAD request, even if the offset is 0, or the upload is already considered completed. If the size of the upload is known, the Server MUST include the Upload-Length header in the response.
The Server MUST prevent the client and/or proxies from caching the response by adding the Cache-Control: no-store header to the response.
The Server MUST always include the Upload-Offset header in the response for a HEAD request, even if the offset is 0, or the upload is already considered completed. If the size of the upload is known, the Server MUST include the Upload-Length header in the response.
The Server MUST prevent the client and/or proxies from caching the response by adding the Cache-Control: no-store header to the response.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(HttpMethod method, TusServletRequest servletRequest, TusServletResponse servletResponse, UploadStorageService uploadStorageService, String ownerKey) boolean
supports
(HttpMethod method) Methods inherited from class me.desair.tus.server.util.AbstractRequestHandler
isErrorHandler
-
Constructor Details
-
CoreHeadRequestHandler
public CoreHeadRequestHandler()
-
-
Method Details
-
supports
-
process
public void process(HttpMethod method, TusServletRequest servletRequest, TusServletResponse servletResponse, UploadStorageService uploadStorageService, String ownerKey) throws IOException - Throws:
IOException
-