public class EntityTag
extends java.lang.Object
Constructor and Description |
---|
EntityTag() |
Modifier and Type | Method and 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.
|
public static java.lang.Boolean compareEntityTag(java.io.StringReader input, boolean compareWeak, java.lang.String resourceETag) throws java.io.IOException
input
- The input to parsecompareWeak
- Use weak comparison e.g. match "etag" with W/"etag"resourceETag
- Resource's ETagnull
if the header is invalidjava.io.IOException
- If an I/O occurs during the parsingCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.