Interface EntityTag.Builder
-
<section role="region">
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityTag.Builder
append(char c)
EntityTag.Builder
append(java.lang.CharSequence text)
Append text to the ETag valueEntityTag.Builder
append(java.lang.CharSequence text, int start, int length)
EntityTag
build()
Build the immutableEntityTag
instanceEntityTag.Builder
digest(boolean digest)
Indicates whether the value should be hashed by a secure hash.EntityTag.Builder
strength(EntityTag.Strength strength)
SetEntityTag.Strength
of theEntityTag
.
-
-
<section role="region">
-
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:
append
in interfacejava.lang.Appendable
-
append
EntityTag.Builder append(java.lang.CharSequence text, int start, int length)
- Specified by:
append
in interfacejava.lang.Appendable
-
append
EntityTag.Builder append(java.lang.CharSequence text)
Append text to the ETag value- Specified by:
append
in 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
-
-