public final class UpdatedHeaders
extends java.lang.Object
implements org.dmfs.httpessentials.headers.Headers
Headers that add or replace a Header.| Constructor and Description |
|---|
UpdatedHeaders(org.dmfs.httpessentials.headers.Headers headers,
org.dmfs.httpessentials.headers.Header<?> updatedHeader)
Create new
Headers that update a single header of other Headers. |
| 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 UpdatedHeaders(org.dmfs.httpessentials.headers.Headers headers,
org.dmfs.httpessentials.headers.Header<?> updatedHeader)
Headers that update a single header of other Headers.headers - The original headers.updatedHeader - The updated header.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