public class ETagUtils
extends java.lang.Object
Constructor | Description |
---|---|
ETagUtils() |
Modifier and Type | Method | Description |
---|---|---|
static ETag |
getETag(HttpServerExchange exchange) |
|
static boolean |
handleIfMatch(HttpServerExchange exchange,
ETag etag,
boolean allowWeak) |
Handles the if-match header.
|
static boolean |
handleIfMatch(HttpServerExchange exchange,
java.util.List<ETag> etags,
boolean allowWeak) |
Handles the if-match header.
|
static boolean |
handleIfMatch(java.lang.String ifMatch,
ETag etag,
boolean allowWeak) |
Handles the if-match header.
|
static boolean |
handleIfMatch(java.lang.String ifMatch,
java.util.List<ETag> etags,
boolean allowWeak) |
Handles the if-match header.
|
static boolean |
handleIfNoneMatch(HttpServerExchange exchange,
ETag etag,
boolean allowWeak) |
Handles the if-none-match header.
|
static boolean |
handleIfNoneMatch(HttpServerExchange exchange,
java.util.List<ETag> etags,
boolean allowWeak) |
Handles the if-none-match header.
|
static boolean |
handleIfNoneMatch(java.lang.String ifNoneMatch,
ETag etag,
boolean allowWeak) |
Handles the if-none-match header.
|
static boolean |
handleIfNoneMatch(java.lang.String ifNoneMatch,
java.util.List<ETag> etags,
boolean allowWeak) |
Handles the if-none-match header.
|
static java.util.List<ETag> |
parseETagList(java.lang.String header) |
public static boolean handleIfMatch(HttpServerExchange exchange, ETag etag, boolean allowWeak)
exchange
- the exchangeetag
- The etagspublic static boolean handleIfMatch(HttpServerExchange exchange, java.util.List<ETag> etags, boolean allowWeak)
exchange
- the exchangeetags
- The etagspublic static boolean handleIfMatch(java.lang.String ifMatch, ETag etag, boolean allowWeak)
ifMatch
- The if match headeretag
- The etagspublic static boolean handleIfMatch(java.lang.String ifMatch, java.util.List<ETag> etags, boolean allowWeak)
ifMatch
- The ifMatch headeretags
- The etagspublic static boolean handleIfNoneMatch(HttpServerExchange exchange, ETag etag, boolean allowWeak)
exchange
- the exchangeetag
- The etagspublic static boolean handleIfNoneMatch(HttpServerExchange exchange, java.util.List<ETag> etags, boolean allowWeak)
exchange
- the exchangeetags
- The etagspublic static boolean handleIfNoneMatch(java.lang.String ifNoneMatch, ETag etag, boolean allowWeak)
ifNoneMatch
- the headeretag
- The etagspublic static boolean handleIfNoneMatch(java.lang.String ifNoneMatch, java.util.List<ETag> etags, boolean allowWeak)
ifNoneMatch
- the headeretags
- The etagspublic static java.util.List<ETag> parseETagList(java.lang.String header)
public static ETag getETag(HttpServerExchange exchange)
exchange
- The exchangeCopyright © 2018. All rights reserved.