Class ETagToken

java.lang.Object
com.atlassian.plugin.servlet.cache.model.ETagToken

public class ETagToken extends Object
Represents an ETag to be used to verify the content of an HttpServletResponse body.
Since:
4.1.18
  • Constructor Details

    • ETagToken

      public ETagToken(@Nonnull byte[] responseBody)
      Build a certain ETag token based on a HttpServletResponse body and Base64.
      Parameters:
      responseBody - The response body to be hashed.
  • Method Details

    • getValue

      @Nonnull public String getValue()
    • getDoubleQuotedValue

      @Nonnull public String getDoubleQuotedValue()
      Entity tag uniquely representing the requested resource. They are a string of ASCII characters placed between double quotes.
      Returns:
      Double quoted etag token.
      See Also: