I have a Jackrabbit WebDAV server running in Tomcat and I want to know how ETag header value is generated. What class is producing it?
How it can be generated using Java based on initial file and it path in Jackrabbit repository?
The intended flow:
- Initial file upload to the server
- If the client is uploading a new file: calculate ETag and compare it with corresponding ETag of file on the server.
- If values the same - do not upload the file, send response to the client. If values deffer - replace the file on server.