Class ETagInformation

java.lang.Object
com.sap.cds.adapter.odata.v2.utils.ETagInformation

public class ETagInformation extends Object
  • Constructor Details

    • ETagInformation

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

    • isAll

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

      public Collection<String> getETags()
      Gets the collection of ETag values found.
      Returns:
      collection of etags.
    • 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