public class EntityTag extends Object
| Constructor and Description | 
|---|
| EntityTag() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Boolean | compareEntityTag(StringReader input,
                boolean compareWeak,
                String resourceETag)Parse the given input as (per RFC 7232) 1#entity-tag. | 
public static Boolean compareEntityTag(StringReader input, boolean compareWeak, String resourceETag) throws IOException
input - The input to parsecompareWeak - Use weak comparison e.g. match "etag" with W/"etag"resourceETag - Resource's ETagtrue if ETag matches, false if ETag doesn't match
         or null if the input is invalidIOException - If an I/O occurs during the parsingCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.