Class EntityTags

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

@BeanIgnore public class EntityTags extends Object
A list of EntityTag beans.
  • Field Details

    • EMPTY

      public static final EntityTags EMPTY
      Represents an empty entity tags object.
  • Constructor Details

    • EntityTags

      public EntityTags(String value)
      Constructor.
      Parameters:
      value - The header value.
    • EntityTags

      public EntityTags(EntityTag... value)
      Constructor.
      Parameters:
      value - The header value.
  • Method Details

    • of

      public static EntityTags of(String value)
      Returns a parsed entity tags header value.
      Parameters:
      value - The raw header value.
      Returns:
      A parsed header value.
    • of

      public static EntityTags of(EntityTag... value)
      Returns a parsed entity tags header value.
      Parameters:
      value - The header value.
      Returns:
      A parsed header value.
    • toList

      public List<EntityTag> toList()
      Returns the entity tags in this object as a list.

      Returns an unmodifiable list.

      Returns:
      The entity tags in this object as a list. Can be null.
    • toArray

      public EntityTag[] toArray()
      Returns the entity tags in this object as an array.

      Returns a copy of the entity tags.

      Returns:
      The entity tags in this object as an array. Can be null.
    • toString

      public String toString()
      Overrides:
      toString in class Object