Interface ETagCreator


  • public interface ETagCreator
    ETagCreator generates ETag identifiers
    • Method Detail

      • generateETag

        String generateETag​(String value)
        Method generates ETag identifier for given string value

        Generated ETag value represents identifier for specific version of the resource. It means the string value passed to the method needs to be unique for specific version of the resource.

        Parameters:
        value - the unique string value for specific version of the resource
        Returns:
        ETag identifier or null if ETag generating fails
      • generateETag

        String generateETag​(ContentFragment contentFragment)
                     throws ContentFragmentException
        Method generates ETag identifier for given content fragment

        Generated ETag value represents identifier for specific version of the content fragment.

        Parameters:
        contentFragment - given content fragment
        Returns:
        ETag identifier
        Throws:
        ContentFragmentException - if ETag generating fails