Package org.eclipse.jetty.util
Class AttributesMap
- java.lang.Object
-
- org.eclipse.jetty.util.AttributesMap
-
- All Implemented Interfaces:
Attributes,Dumpable
public class AttributesMap extends Object implements Attributes, Dumpable
-
-
Constructor Summary
Constructors Constructor Description AttributesMap()AttributesMap(AttributesMap attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAll(Attributes attributes)voidclearAttributes()Stringdump()voiddump(Appendable out, String indent)Dump this object (and children) into an Appendable using the provided indent after any new lines.ObjectgetAttribute(String name)Set<Map.Entry<String,Object>>getAttributeEntrySet()Enumeration<String>getAttributeNames()static Enumeration<String>getAttributeNamesCopy(Attributes attrs)Set<String>getAttributeNameSet()voidremoveAttribute(String name)voidsetAttribute(String name, Object attribute)intsize()StringtoString()
-
-
-
Constructor Detail
-
AttributesMap
public AttributesMap()
-
AttributesMap
public AttributesMap(AttributesMap attributes)
-
-
Method Detail
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttributein interfaceAttributes
-
setAttribute
public void setAttribute(String name, Object attribute)
- Specified by:
setAttributein interfaceAttributes
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttributein interfaceAttributes
-
getAttributeNames
public Enumeration<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfaceAttributes
-
getAttributeNamesCopy
public static Enumeration<String> getAttributeNamesCopy(Attributes attrs)
-
clearAttributes
public void clearAttributes()
- Specified by:
clearAttributesin interfaceAttributes
-
size
public int size()
-
addAll
public void addAll(Attributes attributes)
-
dump
public void dump(Appendable out, String indent) throws IOException
Description copied from interface:DumpableDump 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:
dumpin interfaceDumpable- Parameters:
out- The appendable to dump toindent- The indent to apply after any new lines.- Throws:
IOException
-
-