Interface ETag

All Known Implementing Classes:
ETagDefault

public interface ETag
Represents an HTTP ETag.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the HTTP header value to use for this ETag.
    Gets the tag text.
    boolean
    Is it weak?
    boolean
    Is it a wildcard ETag?
    boolean
    matches(ETag other)
    Does the ETag strongly matches the other specified ETag?
    boolean
    matches(ETag other, boolean weakComparison)
    Does the ETag strongly or weakly matches the other specified ETag?
  • Method Details

    • getTag

      String getTag()
      Gets the tag text.
    • isWeak

      boolean isWeak()
      Is it weak?
    • isWildcard

      boolean isWildcard()
      Is it a wildcard ETag?
    • getHeaderValue

      String getHeaderValue()
      Gets the HTTP header value to use for this ETag.
    • matches

      boolean matches(ETag other)
      Does the ETag strongly matches the other specified ETag?

      If one (or both) ETag is a wildcard, it matches.

      more info

    • matches

      boolean matches(ETag other, boolean weakComparison)
      Does the ETag strongly or weakly matches the other specified ETag?

      If one (or both) ETag is a wildcard, it matches.

      more info