Class EntityTag

java.lang.Object
org.apache.juneau.http.header.EntityTag

public class EntityTag extends Object
Represents a validator value.

Example

ETag: "123456789" – A strong ETag validator ETag: W/"123456789" – A weak ETag validator

See Also:
  • Constructor Details

  • Method Details

    • of

      public static EntityTag of(Object value)
      Static creator.
      Parameters:
      value - The validator string value.
      Returns:
      A new header bean or null if the value was null.
      Throws:
      IllegalArgumentException - If attempting to set an invalid entity tag value.
    • getEntityValue

      Returns the validator value stripped of quotes and weak tag.
      Returns:
      The validator value.
    • isWeak

      public boolean isWeak()
      Returns true if the weak flag is present in the value.
      Returns:
      true if the weak flag is present in the value.
    • isAny

      public boolean isAny()
      Returns true if the validator string value is *.
      Returns:
      true if the validator string value is *.
    • toString

      public String toString()
      Overrides:
      toString in class Object