Class EntityTag
java.lang.Object
org.apache.tomcat.util.http.parser.EntityTag
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic BooleancompareEntityTag(StringReader input, boolean compareWeak, String resourceETag) Parse the given input as (per RFC 7232) 1#entity-tag.
- 
Constructor Details- 
EntityTagpublic EntityTag()
 
- 
- 
Method Details- 
compareEntityTagpublic static Boolean compareEntityTag(StringReader input, boolean compareWeak, String resourceETag) throws 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 parse
- compareWeak- Use weak comparison e.g. match "etag" with W/"etag"
- resourceETag- Resource's ETag
- Returns:
- trueif ETag matches,- falseif ETag doesn't match or- nullif the input is invalid
- Throws:
- IOException- If an I/O occurs during the parsing
 
 
-