Class ETagInformation
java.lang.Object
org.apache.olingo.server.core.etag.ETagInformation
Information about the values of an ETag-relevant HTTP header.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetETags()Gets the collection of ETag values found.booleanisAll()Gets the information whether the values contain "*".booleanisMatchedBy(String eTag) Checks whether a given ETag value is matched by this ETag information, using weak comparison as described in RFC 7232, section 2.3.2.
-
Constructor Details
-
ETagInformation
-
-
Method Details
-
isAll
public boolean isAll()Gets the information whether the values contain "*". -
getETags
Gets the collection of ETag values found. It is empty ifisAll()returnstrue. -
isMatchedBy
Checks whether a given ETag value is matched by this ETag information, using weak comparison as described in RFC 7232, section 2.3.2.
If the given value is
null, or if this ETag information does not contain anything, the result isfalse.- Parameters:
eTag- the ETag value to match- Returns:
- a boolean match result
-