Class ETagInformation

java.lang.Object
org.apache.olingo.server.core.etag.ETagInformation

public class ETagInformation extends Object
Information about the values of an ETag-relevant HTTP header.
  • Constructor Details

    • ETagInformation

      public ETagInformation(boolean all, Collection<String> eTags)
  • Method Details

    • isAll

      public boolean isAll()
      Gets the information whether the values contain "*".
    • getETags

      public Collection<String> getETags()
      Gets the collection of ETag values found. It is empty if isAll() returns true.
    • isMatchedBy

      public boolean isMatchedBy(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.

      If the given value is null, or if this ETag information does not contain anything, the result is false.

      Parameters:
      eTag - the ETag value to match
      Returns:
      a boolean match result