Interface EntityTag.Builder
- All Superinterfaces:
Appendable
- Enclosing interface:
- EntityTag
Build an
EntityTag instance- Author:
- cdivilly
-
Method Summary
Modifier and TypeMethodDescriptionappend(char c) append(CharSequence text) Append text to the ETag valueappend(CharSequence text, int start, int length) build()Build the immutableEntityTaginstancedigest(boolean digest) Indicates whether the value should be hashed by a secure hash.strength(EntityTag.Strength strength) SetEntityTag.Strengthof theEntityTag.
-
Method Details
-
strength
- Parameters:
strength- The Entity Tag strength- Returns:
- self
-
append
- Specified by:
appendin interfaceAppendable
-
append
- Specified by:
appendin interfaceAppendable
-
append
Append text to the ETag value- Specified by:
appendin interfaceAppendable- Parameters:
text- The text to append- Returns:
- self
-
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
-
build
EntityTag build()Build the immutableEntityTaginstance- Returns:
EntityTaginstance
-