Class MatchingEntityTag
java.lang.Object
jakarta.ws.rs.core.EntityTag
org.glassfish.jersey.message.internal.MatchingEntityTag
A matching entity tag.
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.
- Author:
- Paul Sandoz, Marek Potociar
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Set<MatchingEntityTag>
An empty set that corresponds toIf-Match: *
orIf-None-Match: *
. -
Constructor Summary
ConstructorDescriptionMatchingEntityTag
(String value) Create new strongly validating entity tag.MatchingEntityTag
(String value, boolean weak) Create new matching entity tag. -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchingEntityTag
valueOf
(HttpHeaderReader reader) Create new matching entity tag out of provided header reader.
-
Field Details
-
ANY_MATCH
An empty set that corresponds toIf-Match: *
orIf-None-Match: *
.
-
-
Constructor Details
-
MatchingEntityTag
Create new strongly validating entity tag.- Parameters:
value
- ETag header value.
-
MatchingEntityTag
Create new matching entity tag.- Parameters:
value
- ETag header value.weak
- should be set to false, if strong validation is required, otherwise should be set to true.
-
-
Method Details
-
valueOf
Create new matching entity tag out of provided header reader.- Parameters:
reader
- HTTP header content reader.- Returns:
- a new matching entity tag.
- Throws:
ParseException
- in case the header could not be parsed.
-