Interface EntityTag.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityTag.Builderappend(char c)EntityTag.Builderappend(java.lang.CharSequence text)Append text to the ETag valueEntityTag.Builderappend(java.lang.CharSequence text, int start, int length)EntityTagbuild()Build the immutableEntityTaginstanceEntityTag.Builderdigest(boolean digest)Indicates whether the value should be hashed by a secure hash.EntityTag.Builderstrength(EntityTag.Strength strength)SetEntityTag.Strengthof theEntityTag.
-
-
-
Method Detail
-
strength
EntityTag.Builder strength(EntityTag.Strength strength)
- Parameters:
strength- The Entity Tag strength- Returns:
- self
-
append
EntityTag.Builder append(char c)
- Specified by:
appendin interfacejava.lang.Appendable
-
append
EntityTag.Builder append(java.lang.CharSequence text, int start, int length)
- Specified by:
appendin interfacejava.lang.Appendable
-
append
EntityTag.Builder append(java.lang.CharSequence text)
Append text to the ETag value- Specified by:
appendin interfacejava.lang.Appendable- Parameters:
text- The text to append- Returns:
- self
-
digest
EntityTag.Builder digest(boolean digest)
Indicates whether the value should be hashed by a secure hash. If a value is not hashed it may provide a vector for potentially sensitive data, e.g. unique identifiers, personal identifiers etc. to be leaked. The default is to hash values.- Parameters:
digest- If true, values will be securely hashed, if false they will not- Returns:
- self
-
-