Package io.milton.http.http11
Class JustCopyTheUniqueIdETagGenerator
java.lang.Object
io.milton.http.http11.JustCopyTheUniqueIdETagGenerator
- All Implemented Interfaces:
ETagGenerator
Generates the ETag by just returning the getUniqueId
- Author:
- brad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionETag's serve to identify a particular version of a particular resource.
-
Constructor Details
-
JustCopyTheUniqueIdETagGenerator
public JustCopyTheUniqueIdETagGenerator()
-
-
Method Details
-
generateEtag
Description copied from interface:ETagGeneratorETag's serve to identify a particular version of a particular resource. If the resource changes, or is replaced, then this value should change- Specified by:
generateEtagin interfaceETagGenerator- Parameters:
r- - the resource to generate the ETag for- Returns:
- - an ETag which uniquely identifies this version of this resource
-