public class ETagInformation extends Object
| Constructor and Description |
|---|
ETagInformation(boolean all,
Collection<String> eTags) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getETags()
Gets the collection of ETag values found.
|
boolean |
isAll()
Gets the information whether the values contain "*".
|
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.
|
public ETagInformation(boolean all,
Collection<String> eTags)
public boolean isAll()
public Collection<String> getETags()
isAll() returns true.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.
eTag - the ETag value to matchCopyright © 2023. All rights reserved.