public final class Headers extends Object implements Streamable<Header>
| Constructor and Description |
|---|
Headers() |
Headers(Headers headers) |
Headers(Iterable<Header> headers) |
Headers(Map<String,List<String>> headers) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitstreamforEach, spliteratorpublic Headers()
public Headers(Headers headers)
public List<Directives> getDirectives(String name)
public Optional<Directives> getFirstHeaderValueAsDirectives(String headerKey)
public boolean contains(Header header)
public boolean contains(String headerName)
@Deprecated public boolean hasHeader(String headerName)
contains(String) insteadpublic int size()
public boolean isEmpty()
public Headers asCacheable()
public boolean isCachable()
public List<Preference> getAcceptLanguage()
public Headers withAcceptLanguage(List<Preference> acceptLanguage)
public List<Preference> getAcceptCharset()
public Headers withAcceptCharset(List<Preference> charsets)
public List<Preference> getAccept()
public Headers withAccept(List<Preference> charsets)
public Headers addAccept(Preference... accept)
public Headers addAcceptLanguage(Preference... accept)
public Headers addAcceptCharset(Preference... accept)
public Set<HTTPMethod> getAllow()
public Headers withAllow(Set<HTTPMethod> allow)
public Optional<CacheControl> getCacheControl()
public Headers withCacheControl(CacheControl cc)
public Optional<LocalDateTime> getDate()
public Headers withDate(LocalDateTime dt)
public Optional<LocalDateTime> getExpires()
public Headers withExpires(LocalDateTime expires)
public Optional<LocalDateTime> getLastModified()
public Headers withLastModified(LocalDateTime lm)
public Conditionals getConditionals()
public Headers withConditionals(Conditionals conditionals)
public Headers withContentLength(long length)
Copyright © 2008–2017. All rights reserved.