Class AttributesMap

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.atomic.AtomicReference<java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.Object>> _map  
      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAll​(Attributes attributes)  
      void clearAttributes()  
      java.lang.String dump()  
      void dump​(java.lang.Appendable out, java.lang.String indent)
      Dump this object (and children) into an Appendable using the provided indent after any new lines.
      private java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.Object> ensureMap()  
      java.lang.Object getAttribute​(java.lang.String name)  
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> getAttributeEntrySet()  
      java.util.Enumeration<java.lang.String> getAttributeNames()  
      static java.util.Enumeration<java.lang.String> getAttributeNamesCopy​(Attributes attrs)  
      java.util.Set<java.lang.String> getAttributeNameSet()  
      private java.util.Set<java.lang.String> keySet()  
      private java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.Object> map()  
      void removeAttribute​(java.lang.String name)  
      void setAttribute​(java.lang.String name, java.lang.Object attribute)  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

        dumpSelf
    • Field Detail

      • _map

        private final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.Object>> _map
    • Constructor Detail

      • AttributesMap

        public AttributesMap()
      • AttributesMap

        public AttributesMap​(AttributesMap attributes)
    • Method Detail

      • map

        private java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.Object> map()
      • ensureMap

        private java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.Object> ensureMap()
      • removeAttribute

        public void removeAttribute​(java.lang.String name)
        Specified by:
        removeAttribute in interface Attributes
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object attribute)
        Specified by:
        setAttribute in interface Attributes
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Specified by:
        getAttribute in interface Attributes
      • getAttributeNames

        public java.util.Enumeration<java.lang.String> getAttributeNames()
        Specified by:
        getAttributeNames in interface Attributes
      • getAttributeEntrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> getAttributeEntrySet()
      • getAttributeNamesCopy

        public static java.util.Enumeration<java.lang.String> getAttributeNamesCopy​(Attributes attrs)
      • size

        public int size()
      • toString

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

        private java.util.Set<java.lang.String> keySet()
      • addAll

        public void addAll​(Attributes attributes)
      • dump

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

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        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:
        java.io.IOException - if unable to write to Appendable