Package me.desair.tus.server.core
Class CorePatchRequestHandler
java.lang.Object
me.desair.tus.server.util.AbstractRequestHandler
me.desair.tus.server.core.CorePatchRequestHandler
- All Implemented Interfaces:
RequestHandler
The Server SHOULD accept PATCH requests against any upload URL and apply the bytes contained in
the message at the given offset specified by the Upload-Offset header.
The Server MUST acknowledge successful PATCH requests with the 204 No Content status. It MUST include the Upload-Offset header containing the new offset. The new offset MUST be the sum of the offset before the PATCH request and the number of bytes received and processed or stored during the current PATCH request.
The Server MUST acknowledge successful PATCH requests with the 204 No Content status. It MUST include the Upload-Offset header containing the new offset. The new offset MUST be the sum of the offset before the PATCH request and the number of bytes received and processed or stored during the current PATCH request.
-
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
-
CorePatchRequestHandler
public CorePatchRequestHandler()
-
-
Method Details
-
supports
-
process
public void process(HttpMethod method, TusServletRequest servletRequest, TusServletResponse servletResponse, UploadStorageService uploadStorageService, String ownerKey) throws IOException, TusException - Throws:
IOException
TusException
-