Package io.undertow.util
Class ETagUtils
java.lang.Object
io.undertow.util.ETagUtils
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ETaggetETag(HttpServerExchange exchange) static booleanhandleIfMatch(HttpServerExchange exchange, ETag etag, boolean allowWeak) Handles the if-match header.static booleanhandleIfMatch(HttpServerExchange exchange, List<ETag> etags, boolean allowWeak) Handles the if-match header.static booleanhandleIfMatch(String ifMatch, ETag etag, boolean allowWeak) Handles the if-match header.static booleanhandleIfMatch(String ifMatch, List<ETag> etags, boolean allowWeak) Handles the if-match header.static booleanhandleIfNoneMatch(HttpServerExchange exchange, ETag etag, boolean allowWeak) Handles the if-none-match header.static booleanhandleIfNoneMatch(HttpServerExchange exchange, List<ETag> etags, boolean allowWeak) Handles the if-none-match header.static booleanhandleIfNoneMatch(String ifNoneMatch, ETag etag, boolean allowWeak) Handles the if-none-match header.static booleanhandleIfNoneMatch(String ifNoneMatch, List<ETag> etags, boolean allowWeak) Handles the if-none-match header.parseETagList(String header)
-
Constructor Details
-
ETagUtils
public ETagUtils()
-
-
Method Details
-
handleIfMatch
Handles the if-match header. returns true if the request should proceed, false otherwise- Parameters:
exchange- the exchangeetag- The etags- Returns:
-
handleIfMatch
public static boolean handleIfMatch(HttpServerExchange exchange, List<ETag> etags, boolean allowWeak) Handles the if-match header. returns true if the request should proceed, false otherwise- Parameters:
exchange- the exchangeetags- The etags- Returns:
-
handleIfMatch
Handles the if-match header. returns true if the request should proceed, false otherwise- Parameters:
ifMatch- The if match headeretag- The etags- Returns:
-
handleIfMatch
Handles the if-match header. returns true if the request should proceed, false otherwise- Parameters:
ifMatch- The ifMatch headeretags- The etags- Returns:
-
handleIfNoneMatch
Handles the if-none-match header. returns true if the request should proceed, false otherwise- Parameters:
exchange- the exchangeetag- The etags- Returns:
-
handleIfNoneMatch
public static boolean handleIfNoneMatch(HttpServerExchange exchange, List<ETag> etags, boolean allowWeak) Handles the if-none-match header. returns true if the request should proceed, false otherwise- Parameters:
exchange- the exchangeetags- The etags- Returns:
-
handleIfNoneMatch
Handles the if-none-match header. returns true if the request should proceed, false otherwise- Parameters:
ifNoneMatch- the headeretag- The etags- Returns:
-
handleIfNoneMatch
Handles the if-none-match header. returns true if the request should proceed, false otherwise- Parameters:
ifNoneMatch- the headeretags- The etags- Returns:
-
parseETagList
-
getETag
- Parameters:
exchange- The exchange- Returns:
- The ETag for the exchange, or null if the etag is not set
-