Interface EntityTag
-
- All Superinterfaces:
java.lang.CharSequence
public interface EntityTag extends java.lang.CharSequenceETagheader 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-stringproduction. Also see RFC 7230 section 3.2.6 which updates the definition ofquoted-stringto remove ambiguity about escaping within quoted strings.- Author:
- cdivilly
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceEntityTag.BuilderBuild anEntityTaginstancestatic classEntityTag.StrengthThe '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.Strengthstrength()The Entity TagEntityTag.Strengthjava.lang.Stringvalue()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.Strengthvalue
-
-