Package com.adobe.cq.dam.cfm.extensions
Interface ETagCreator
-
public interface ETagCreator
ETagCreator generates ETag identifiers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
generateETag(ContentFragment contentFragment)
Method generates ETag identifier for given content fragmentString
generateETag(String value)
Method generates ETag identifier for given string value
-
-
-
Method Detail
-
generateETag
String generateETag(String value)
Method generates ETag identifier for given string valueGenerated 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 fragmentGenerated 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
-
-