Class ETag


  • @Contract(threading=IMMUTABLE)
    public final class ETag
    extends java.lang.Object
    Represents ETag value.
    Since:
    5.4
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ValidatorType type  
      private java.lang.String value  
    • Constructor Summary

      Constructors 
      Constructor Description
      ETag​(java.lang.String value)  
      ETag​(java.lang.String value, ValidatorType type)  
    • Field Detail

      • value

        private final java.lang.String value
    • Constructor Detail

      • ETag

        public ETag​(java.lang.String value,
                    ValidatorType type)
      • ETag

        public ETag​(java.lang.String value)
    • Method Detail

      • getValue

        public java.lang.String getValue()
      • strongCompare

        public static boolean strongCompare​(ETag t1,
                                            ETag t2)
      • weakCompare

        public static boolean weakCompare​(ETag t1,
                                          ETag t2)
      • parse

        static ETag parse​(java.lang.CharSequence buf,
                          org.apache.hc.core5.util.Tokenizer.Cursor cursor)
      • parse

        public static ETag parse​(java.lang.String s)
      • parse

        public static ETag parse​(org.apache.hc.core5.http.Header h)
      • get

        public static ETag get​(org.apache.hc.core5.http.MessageHeaders message)
      • format

        @Internal
        public void format​(org.apache.hc.core5.util.CharArrayBuffer buf)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object