public abstract class AbstractComplexHeaderList extends java.lang.Object implements HeaderList
HeaderLists. It implements methods that are common to non-trivial HeaderList implementations.| Constructor and Description |
|---|
AbstractComplexHeaderList()
Empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HeaderList |
append(Header<?>... newHeaders)
Returns a new
HeaderList that also contains the given Headers. |
HeaderList |
append(HeaderList newHeaders)
|
<T> java.util.Iterator<Header<T>> |
headersByType(HeaderType<T> headerType)
|
HeaderList |
remove(HeaderType<?>... removedHeaderTypes)
Returns a new
HeaderList that doesn't contain any headers of the given types. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, contains, sizepublic HeaderList append(Header<?>... newHeaders)
HeaderListHeaderList that also contains the given Headers.append in interface HeaderListnewHeaders - The Headers to add.HeaderList that contains the new Headers in addition to the Headers of this list.public HeaderList append(HeaderList newHeaders)
HeaderListappend in interface HeaderListnewHeaders - The HeaderList containing the headers to add.HeaderList that contains the new Headers in addition to the Headers of this list.public HeaderList remove(HeaderType<?>... removedHeaderTypes)
HeaderListHeaderList that doesn't contain any headers of the given types.remove in interface HeaderListpublic <T> java.util.Iterator<Header<T>> headersByType(HeaderType<T> headerType)
HeaderListheadersByType in interface HeaderListheaderType - The HeaderType to look for.Iterator of Headers, may be empty, but never null.