public interface HeaderList extends java.lang.Iterable<Header<?>>
Headers.| Modifier and Type | Method and Description |
|---|---|
HeaderList |
append(Header<?>... newHeaders)
Returns a new
HeaderList that also contains the given Headers. |
HeaderList |
append(HeaderList newHeaders)
|
boolean |
contains(Header<?> header)
Returns whether this HeaderSet contains the given
Header. |
boolean |
contains(HeaderType<?> headerType)
Returns whether this HeaderSet contains a
Header of the given HeaderType. |
<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. |
int |
size()
Returns the number of
Headers in this HeaderList. |
HeaderList append(Header<?>... newHeaders)
HeaderList that also contains the given Headers.newHeaders - The Headers to add.HeaderList that contains the new Headers in addition to the Headers of this list.HeaderList append(HeaderList newHeaders)
newHeaders - The HeaderList containing the headers to add.HeaderList that contains the new Headers in addition to the Headers of this list.HeaderList remove(HeaderType<?>... removedHeaderTypes)
HeaderList that doesn't contain any headers of the given types.removedHeaderTypes - boolean contains(HeaderType<?> headerType)
Header of the given HeaderType.headerType - boolean contains(Header<?> header)
Header. This is only true if the set contains a Header having the same HeaderType and
value.header - <T> java.util.Iterator<Header<T>> headersByType(HeaderType<T> headerType)
headerType - The HeaderType to look for.Iterator of Headers, may be empty, but never null.int size()
Headers in this HeaderList.