public class MatchingEntityTag extends EntityTag
Note that this type and it's super type cannot be used to create request
header values for If-Match and If-None-Match
of the form If-Match: * or If-None-Match: * as
* is not a valid entity tag.
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<MatchingEntityTag> |
ANY_MATCH
An empty set that corresponds to
If-Match: * or
If-None-Match: *. |
| Constructor and Description |
|---|
MatchingEntityTag(java.lang.String value)
Create new strongly validating entity tag.
|
MatchingEntityTag(java.lang.String value,
boolean weak)
Create new matching entity tag.
|
| Modifier and Type | Method and Description |
|---|---|
static MatchingEntityTag |
valueOf(HttpHeaderReader reader)
Create new matching entity tag out of provided header reader.
|
public static final java.util.Set<MatchingEntityTag> ANY_MATCH
If-Match: * or
If-None-Match: *.public MatchingEntityTag(java.lang.String value)
value - ETag header value.public MatchingEntityTag(java.lang.String value,
boolean weak)
value - ETag header value.weak - should be set to false, if strong validation is required,
otherwise should be set to true.public static MatchingEntityTag valueOf(HttpHeaderReader reader) throws java.text.ParseException
reader - HTTP header content reader.java.text.ParseException - in case the header could not be parsed.Copyright © 2016 Oracle Corporation. All Rights Reserved.