public final class FilteredHeaders
extends java.lang.Object
implements org.dmfs.httpessentials.headers.Headers
Headers decorator that filters certain HeaderTypes from the given Headers| Constructor and Description |
|---|
FilteredHeaders(org.dmfs.httpessentials.headers.Headers originalHeaders,
org.dmfs.httpessentials.headers.HeaderType<?>... filteredHeaderTypes)
Creates a
Headers from another Headers which doesn't contain Headers of the given HeaderTypes |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(org.dmfs.httpessentials.headers.HeaderType<?> headerType) |
<T> org.dmfs.httpessentials.headers.Header<java.util.List<T>> |
header(org.dmfs.httpessentials.headers.ListHeaderType<T> headerType) |
<T> org.dmfs.httpessentials.headers.Header<T> |
header(org.dmfs.httpessentials.headers.SingletonHeaderType<T> headerType) |
java.util.Iterator<org.dmfs.httpessentials.headers.Header<?>> |
iterator() |
<T> org.dmfs.httpessentials.headers.Headers |
withHeader(org.dmfs.httpessentials.headers.Header<T> header) |
<T> org.dmfs.httpessentials.headers.Headers |
withoutHeaderType(org.dmfs.httpessentials.headers.HeaderType<T> headerType) |
public FilteredHeaders(org.dmfs.httpessentials.headers.Headers originalHeaders,
org.dmfs.httpessentials.headers.HeaderType<?>... filteredHeaderTypes)
Headers from another Headers which doesn't contain Headers of the given HeaderTypesoriginalHeaders - The original Headers.filteredHeaderTypes - The HeaderTypes to remove from the original Headers.public java.util.Iterator<org.dmfs.httpessentials.headers.Header<?>> iterator()
iterator in interface java.lang.Iterable<org.dmfs.httpessentials.headers.Header<?>>public boolean contains(org.dmfs.httpessentials.headers.HeaderType<?> headerType)
contains in interface org.dmfs.httpessentials.headers.Headerspublic <T> org.dmfs.httpessentials.headers.Header<T> header(org.dmfs.httpessentials.headers.SingletonHeaderType<T> headerType)
header in interface org.dmfs.httpessentials.headers.Headerspublic <T> org.dmfs.httpessentials.headers.Header<java.util.List<T>> header(org.dmfs.httpessentials.headers.ListHeaderType<T> headerType)
header in interface org.dmfs.httpessentials.headers.Headerspublic <T> org.dmfs.httpessentials.headers.Headers withHeader(org.dmfs.httpessentials.headers.Header<T> header)
withHeader in interface org.dmfs.httpessentials.headers.Headerspublic <T> org.dmfs.httpessentials.headers.Headers withoutHeaderType(org.dmfs.httpessentials.headers.HeaderType<T> headerType)
withoutHeaderType in interface org.dmfs.httpessentials.headers.Headers