Interface EntityTag
-
- All Superinterfaces:
java.lang.CharSequence
public interface EntityTag extends java.lang.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-string
See RFC 2616 section 2.2 for definition of thequoted-string
production. Also see RFC 7230 section 3.2.6 which updates the definition ofquoted-string
to remove ambiguity about escaping within quoted strings.- Author:
- cdivilly
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EntityTag.Builder
Build anEntityTag
instancestatic 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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityTag.Strength
strength()
The Entity TagEntityTag.Strength
java.lang.String
value()
The decoded value of theEntityTag
, i.e.
-
-
-
Method Detail
-
value
java.lang.String value()
The decoded value of theEntityTag
, i.e. the value with double-quotes removed and any escaped characters un-escaped.- Returns:
- The decoded value
-
strength
EntityTag.Strength strength()
The Entity TagEntityTag.Strength
- Returns:
- The
EntityTag.Strength
value
-
-