Class AttributesMap

java.lang.Object
org.eclipse.jetty.util.AttributesMap
All Implemented Interfaces:
Attributes, Dumpable

@Deprecated public class AttributesMap extends Object implements Attributes, Dumpable
Deprecated.
  • Constructor Details

    • AttributesMap

      public AttributesMap()
      Deprecated.
    • AttributesMap

      public AttributesMap(AttributesMap attributes)
      Deprecated.
  • Method Details

    • removeAttribute

      public Object removeAttribute(String name)
      Deprecated.
      Description copied from interface: Attributes
      Remove an attribute
      Specified by:
      removeAttribute in interface Attributes
      Parameters:
      name - the attribute to remove
      Returns:
      the value of the attribute if removed, else null
    • setAttribute

      public Object setAttribute(String name, Object attribute)
      Deprecated.
      Description copied from interface: Attributes
      Set an attribute
      Specified by:
      setAttribute in interface Attributes
      Parameters:
      name - the attribute to set
      attribute - the value to set. A null value is equivalent to removing the attribute.
      Returns:
      the previous value of the attribute if set, else null
    • getAttribute

      public Object getAttribute(String name)
      Deprecated.
      Description copied from interface: Attributes
      Get an attribute
      Specified by:
      getAttribute in interface Attributes
      Parameters:
      name - the attribute to get
      Returns:
      the value of the attribute, or null if no such attribute exists
    • getAttributeNameSet

      public Set<String> getAttributeNameSet()
      Deprecated.
      Description copied from interface: Attributes
      Get the immutable set of attribute names.
      Specified by:
      getAttributeNameSet in interface Attributes
      Returns:
      Set of attribute names, or an empty set if there are no attributes.
    • getAttributeEntrySet

      public Set<Map.Entry<String,Object>> getAttributeEntrySet()
      Deprecated.
    • getAttributeNamesCopy

      public static Enumeration<String> getAttributeNamesCopy(Attributes attrs)
      Deprecated.
    • getAttributeNameSetCopy

      public static Set<String> getAttributeNameSetCopy(Attributes attrs)
      Deprecated.
    • clearAttributes

      public void clearAttributes()
      Deprecated.
      Description copied from interface: Attributes
      Clear all attribute names
      Specified by:
      clearAttributes in interface Attributes
    • size

      public int size()
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • addAll

      public void addAll(Attributes attributes)
      Deprecated.
    • dump

      public String dump()
      Deprecated.
      Specified by:
      dump in interface Dumpable
    • dump

      public void dump(Appendable out, String indent) throws IOException
      Deprecated.
      Description copied from interface: Dumpable
      Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
      Specified by:
      dump in interface Dumpable
      Parameters:
      out - The appendable to dump to
      indent - The indent to apply after any new lines.
      Throws:
      IOException - if unable to write to Appendable