Package org.apache.http.entity.mime
Class Header
- java.lang.Object
-
- org.apache.http.entity.mime.Header
-
- All Implemented Interfaces:
java.lang.Iterable<MinimalField>
public class Header extends java.lang.Object implements java.lang.Iterable<MinimalField>
The header of an entity (see RFC 2045).
-
-
Constructor Summary
Constructors Constructor Description Header()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(MinimalField field)
MinimalField
getField(java.lang.String name)
java.util.List<MinimalField>
getFields()
java.util.List<MinimalField>
getFields(java.lang.String name)
java.util.Iterator<MinimalField>
iterator()
int
removeFields(java.lang.String name)
void
setField(MinimalField field)
java.lang.String
toString()
-
-
-
Method Detail
-
addField
public void addField(MinimalField field)
-
getFields
public java.util.List<MinimalField> getFields()
-
getField
public MinimalField getField(java.lang.String name)
-
getFields
public java.util.List<MinimalField> getFields(java.lang.String name)
-
removeFields
public int removeFields(java.lang.String name)
-
setField
public void setField(MinimalField field)
-
iterator
public java.util.Iterator<MinimalField> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<MinimalField>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-