Class JustCopyTheUniqueIdETagGenerator

java.lang.Object
io.milton.http.http11.JustCopyTheUniqueIdETagGenerator
All Implemented Interfaces:
ETagGenerator

public class JustCopyTheUniqueIdETagGenerator extends Object implements ETagGenerator
Generates the ETag by just returning the getUniqueId
Author:
brad
  • Constructor Details

    • JustCopyTheUniqueIdETagGenerator

      public JustCopyTheUniqueIdETagGenerator()
  • Method Details

    • generateEtag

      public String generateEtag(Resource r)
      Description copied from interface: ETagGenerator
      ETag'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:
      generateEtag in interface ETagGenerator
      Parameters:
      r - - the resource to generate the ETag for
      Returns:
      - an ETag which uniquely identifies this version of this resource