Class EntityTag

  • public class EntityTag
    extends java.lang.Object
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Boolean compareEntityTag​( input, boolean compareWeak, java.lang.String resourceETag)
      Parse the given input as (per RFC 7232) 1#entity-tag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EntityTag

        public EntityTag()
    • Method Detail

      • compareEntityTag

        public static java.lang.Boolean compareEntityTag​( input,
                                                         boolean compareWeak,
                                                         java.lang.String resourceETag)
        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.
        input - The input to parse
        compareWeak - Use weak comparison e.g. match "etag" with W/"etag"
        resourceETag - Resource's ETag
        true if ETag matches, false if ETag doesn't match or null if the input is invalid
        Throws: - If an I/O occurs during the parsing