Class ETagRequest

  • All Implemented Interfaces:
    Serializable

    public final class ETagRequest
    extends Object
    implements Serializable
    Represents a request for a tagged resource. Contains all data needed to check whether the resource is still up-to-date.
    Since:
    8.3.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • ifMatch

        public Set<ETag> ifMatch()
        Gets the set of ETags corresponding to the If-Match header.
        Returns:
        Set of if-match ETags.
      • ifNoneMatch

        public Set<ETag> ifNoneMatch()
        Gets the set of ETags corresponding to the If-None-Match header.
        Returns:
        Set of if-none-match ETags.
      • of

        public static ETagRequest of​(Set<ETag> ifMatch,
                                     Set<ETag> ifNoneMatch)
        Creates a new ETag request from the given if and if-none tags.
        Parameters:
        ifMatch - If-match tags.
        ifNoneMatch - If-none-match tags.
        Returns:
        A new ETag request.