Class EntityTag
- java.lang.Object
-
- org.apache.tomcat.util.http.parser.EntityTag
-
public class EntityTag extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EntityTag()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Boolean
compareEntityTag(java.io.StringReader input, boolean compareWeak, java.lang.String resourceETag)
Parse the given input as (per RFC 7232) 1#entity-tag.
-
-
-
Method Detail
-
compareEntityTag
public static java.lang.Boolean compareEntityTag(java.io.StringReader input, boolean compareWeak, java.lang.String resourceETag) throws java.io.IOException
Parse the given input as (per RFC 7232) 1#entity-tag. Compare an ETag header with a resource ETag as described in RFC 7232 section 2.3.2.- Parameters:
input
- The input to parsecompareWeak
- Use weak comparison e.g. match "etag" with W/"etag"resourceETag
- Resource's ETag- Returns:
true
if ETag matches,false
if ETag doesn't match ornull
if the input is invalid- Throws:
java.io.IOException
- If an I/O occurs during the parsing
-
-