Package de.xima.fc.common.etag
Class ETagRequest
- java.lang.Object
-
- de.xima.fc.common.etag.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
Set<ETag>
ifMatch()
Gets the set of ETags corresponding to theIf-Match
header.Set<ETag>
ifNoneMatch()
Gets the set of ETags corresponding to theIf-None-Match
header.static ETagRequest
of(Set<ETag> ifMatch, Set<ETag> ifNoneMatch)
Creates a new ETag request from the given if and if-none tags.
-
-
-
Method Detail
-
ifMatch
public Set<ETag> ifMatch()
Gets the set of ETags corresponding to theIf-Match
header.- Returns:
- Set of if-match ETags.
-
ifNoneMatch
public Set<ETag> ifNoneMatch()
Gets the set of ETags corresponding to theIf-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.
-
-