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