Package org.apache.juneau.http.header
Class EntityTag
java.lang.Object
org.apache.juneau.http.header.EntityTag
Represents a validator value.
Example
ETag: "123456789" – A strong ETag validator ETag: W/"123456789" – A weak ETag validator
See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EntityTag
Constructor.- Parameters:
value
- The validator string value.- Throws:
IllegalArgumentException
- If attempting to set an invalid entity tag value.
-
-
Method Details
-
of
Static creator.- Parameters:
value
- The validator string value.- Returns:
- A new header bean or
null if the value wasnull . - Throws:
IllegalArgumentException
- If attempting to set an invalid entity tag value.
-
getEntityValue
Returns the validator value stripped of quotes and weak tag.- Returns:
- The validator value.
-
isWeak
Returnstrue if the weak flag is present in the value.- Returns:
true if the weak flag is present in the value.
-
isAny
Returnstrue if the validator string value is* .- Returns:
true if the validator string value is* .
-
toString
-