public interface EntityTag extends CharSequence
ETag header values MUST conform to the syntax mandated in RFC 2616 section
3.11:
entity-tag = [ weak ] opaque-tag weak = "W/" opaque-tag = quoted-stringSee RFC 2616 section 2.2 for definition of the
quoted-string production. Also see
RFC 7230 section
3.2.6 which updates the definition of quoted-string to
remove ambiguity about escaping within quoted strings.| Modifier and Type | Interface and Description |
|---|---|
static interface |
EntityTag.Builder
Build an
EntityTag instance |
static class |
EntityTag.Strength
The 'strength' of the ETag value:
A "strong entity tag" MAY be shared by two entities of a resource
only if they are equivalent by octet equality.
|
| Modifier and Type | Method and Description |
|---|---|
EntityTag.Strength |
strength()
The Entity Tag
EntityTag.Strength |
String |
value()
The decoded value of the
EntityTag, i.e. |
charAt, chars, codePoints, length, subSequence, toStringString value()
EntityTag, i.e. the value with
double-quotes removed and any escaped characters un-escaped.EntityTag.Strength strength()
EntityTag.StrengthEntityTag.Strength value