@Internal public class NettyHttpHeaders extends Object implements MutableHttpHeaders
HttpHeaders.GMTACCEPT, ACCEPT_CH, ACCEPT_CH_LIFETIME, ACCEPT_CHARSET, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ACCEPT_PATCH, ACCEPT_RANGES, ACCESS_CONTROL_ALLOW_CREDENTIALS, ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ACCESS_CONTROL_EXPOSE_HEADERS, ACCESS_CONTROL_MAX_AGE, ACCESS_CONTROL_REQUEST_HEADERS, ACCESS_CONTROL_REQUEST_METHOD, AGE, ALLOW, AUTHORIZATION, AUTHORIZATION_INFO, CACHE_CONTROL, CONNECTION, CONTENT_BASE, CONTENT_DISPOSITION, CONTENT_DPR, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_RANGE, CONTENT_TRANSFER_ENCODING, CONTENT_TYPE, COOKIE, CROSS_ORIGIN_RESOURCE_POLICY, DATE, DEVICE_MEMORY, DOWNLINK, DPR, ECT, ETAG, EXPECT, EXPIRES, FEATURE_POLICY, FORWARDED, FROM, HOST, IF_MATCH, IF_MODIFIED_SINCE, IF_NONE_MATCH, IF_RANGE, IF_UNMODIFIED_SINCE, LAST_MODIFIED, LINK, LOCATION, MAX_FORWARDS, ORIGIN, PRAGMA, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, RANGE, REFERER, REFERRER_POLICY, RETRY_AFTER, RTT, SAVE_DATA, SEC_WEBSOCKET_ACCEPT, SEC_WEBSOCKET_KEY, SEC_WEBSOCKET_KEY1, SEC_WEBSOCKET_KEY2, SEC_WEBSOCKET_LOCATION, SEC_WEBSOCKET_ORIGIN, SEC_WEBSOCKET_PROTOCOL, SEC_WEBSOCKET_VERSION, SERVER, SET_COOKIE, SET_COOKIE2, SOURCE_MAP, TE, TRAILER, TRANSFER_ENCODING, UPGRADE, USER_AGENT, VARY, VIA, VIEWPORT_WIDTH, WARNING, WEBSOCKET_LOCATION, WEBSOCKET_ORIGIN, WEBSOCKET_PROTOCOL, WIDTH, WWW_AUTHENTICATE, X_AUTH_TOKENEMPTY| Constructor and Description | 
|---|
| NettyHttpHeaders()Default constructor. | 
| NettyHttpHeaders(io.netty.handler.codec.http.HttpHeaders nettyHeaders,
                ConversionService conversionService) | 
| Modifier and Type | Method and Description | 
|---|---|
| MutableHttpHeaders | add(CharSequence header,
   CharSequence value)Add a header for the given name and value. | 
| MutableHttpHeaders | allowGeneric(Collection<? extends CharSequence> methods)Set the allowed HTTP methods. | 
| MutableHttpHeaders | auth(String userInfo)Used to configure BASIC authentication. | 
| boolean | contains(String name)Whether the given key is contained within these values. | 
| MutableHttpHeaders | contentType(MediaType mediaType)Sets the  HttpHeaders.CONTENT_TYPEheader to the given media type. | 
| MutableHttpHeaders | date(LocalDateTime date)Adds the date header for the given  LocalDateTime. | 
| MutableHttpHeaders | date(long timeInMillis)Adds the DATE header for the given  Long. | 
| MutableHttpHeaders | expires(LocalDateTime date)Adds the EXPIRES header for the given  LocalDateTime. | 
| MutableHttpHeaders | expires(long timeInMillis)Adds the EXPIRES header for the given  Long. | 
| String | get(CharSequence name)Get a value without applying any conversion. | 
| <T> Optional<T> | get(CharSequence name,
   ArgumentConversionContext<T> conversionContext)Resolve the given property for the given name. | 
| List<String> | getAll(CharSequence name)Get all the values for the given name without applying conversion. | 
| io.netty.handler.codec.http.HttpHeaders | getNettyHeaders() | 
| MutableHttpHeaders | ifModifiedSince(LocalDateTime date)Adds the IF_MODIFIED_SINCE header for the given  ZonedDateTime. | 
| MutableHttpHeaders | ifModifiedSince(long timeInMillis)Adds the IF_MODIFIED_SINCE header for the given  Long. | 
| MutableHttpHeaders | lastModified(LocalDateTime date)Adds the LAST_MODIFIED header for the given  LocalDateTime. | 
| MutableHttpHeaders | lastModified(long timeInMillis)Adds the LAST_MODIFIED header for the given  Long. | 
| MutableHttpHeaders | location(URI uri)Sets the location header to the given URI. | 
| Set<String> | names() | 
| MutableHttpHeaders | remove(CharSequence header)Removes a header. | 
| MutableHeaders | set(CharSequence header,
   CharSequence value)Sets an HTTP header overriding any existing value. | 
| Collection<List<String>> | values() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, contentLength, contentType, findDate, findFirst, findInt, getAuthorization, getContentType, getDate, getInt, getOrigin, isKeepAliveempty, forEach, forEachValue, getFirst, getFirst, getFirst, getFirst, getFirst, isEmpty, iterator, ofasMap, asMap, asProperties, getValue, getValueType, of, subMap, subMap, subMapget, get, getforEach, spliteratorpublic NettyHttpHeaders(io.netty.handler.codec.http.HttpHeaders nettyHeaders,
                        ConversionService conversionService)
nettyHeaders - The Netty Http headersconversionService - The conversion servicepublic NettyHttpHeaders()
public io.netty.handler.codec.http.HttpHeaders getNettyHeaders()
public final boolean contains(String name)
ConvertibleValuescontains in interface ConvertibleValues<List<String>>name - The key namepublic <T> Optional<T> get(CharSequence name, ArgumentConversionContext<T> conversionContext)
ValueResolverget in interface ValueResolver<CharSequence>T - The concrete typename - The nameconversionContext - The conversion contextpublic List<String> getAll(CharSequence name)
ConvertibleMultiValuesgetAll in interface ConvertibleMultiValues<String>name - The header namepublic Set<String> names()
names in interface ConvertibleValues<List<String>>public Collection<List<String>> values()
values in interface ConvertibleValues<List<String>>public String get(CharSequence name)
ConvertibleMultiValuesget in interface ConvertibleMultiValues<String>name - The name of the valueConvertibleMultiValues.getFirst(CharSequence)public MutableHttpHeaders add(CharSequence header, CharSequence value)
MutableHttpHeadersadd in interface MutableHeadersadd in interface MutableHttpHeadersheader - The header namevalue - The valuepublic MutableHeaders set(CharSequence header, CharSequence value)
MutableHeadersset in interface MutableHeadersset in interface MutableHttpHeadersheader - The headervalue - The valuepublic MutableHttpHeaders remove(CharSequence header)
MutableHeadersremove in interface MutableHeadersremove in interface MutableHttpHeadersheader - The header to removepublic MutableHttpHeaders date(LocalDateTime date)
MutableHttpHeadersLocalDateTime.date in interface MutableHttpHeadersdate - The local date time (assumed to represent system's default time-zone ZoneId.systemDefault(), will be converted to GMT) as per DateTimeFormatter.RFC_1123_DATE_TIMEMutableHttpHeadersto set date time with time-zone.public MutableHttpHeaders expires(LocalDateTime date)
MutableHttpHeadersLocalDateTime.expires in interface MutableHttpHeadersdate - The local date time (assumed to represent system's default time-zone ZoneId.systemDefault(), will be converted to GMT) as per DateTimeFormatter.RFC_1123_DATE_TIMEMutableHttpHeadersto set date time with time-zone.public MutableHttpHeaders lastModified(LocalDateTime date)
MutableHttpHeadersLocalDateTime.lastModified in interface MutableHttpHeadersdate - The local date time (assumed to represent system's default time-zone ZoneId.systemDefault(), will be converted to GMT) as per DateTimeFormatter.RFC_1123_DATE_TIMEMutableHttpHeadersto set date time with time-zone.public MutableHttpHeaders ifModifiedSince(LocalDateTime date)
MutableHttpHeadersZonedDateTime.ifModifiedSince in interface MutableHttpHeadersdate - The local date time (assumed to represent system's default time-zone ZoneId.systemDefault(), will be converted to GMT) as per DateTimeFormatter.RFC_1123_DATE_TIMEMutableHttpHeadersto set date time with time-zone.public MutableHttpHeaders date(long timeInMillis)
MutableHttpHeadersLong.date in interface MutableHttpHeaderstimeInMillis - The time in milli seconds since Epoch.MutableHttpHeaderspublic MutableHttpHeaders expires(long timeInMillis)
MutableHttpHeadersLong.expires in interface MutableHttpHeaderstimeInMillis - The time in milli seconds since Epoch.MutableHttpHeaderspublic MutableHttpHeaders lastModified(long timeInMillis)
MutableHttpHeadersLong.lastModified in interface MutableHttpHeaderstimeInMillis - The time in milli seconds since Epoch.MutableHttpHeaderspublic MutableHttpHeaders ifModifiedSince(long timeInMillis)
MutableHttpHeadersLong.ifModifiedSince in interface MutableHttpHeaderstimeInMillis - The time in milli seconds since Epoch.MutableHttpHeaderspublic MutableHttpHeaders auth(String userInfo)
MutableHttpHeadersauth in interface MutableHttpHeadersuserInfo - The user info which is in the form "username:password"public MutableHttpHeaders allowGeneric(Collection<? extends CharSequence> methods)
MutableHttpHeadersallowGeneric in interface MutableHttpHeadersmethods - The methods to specify in the Allowed HTTP headerpublic MutableHttpHeaders location(URI uri)
MutableHttpHeaderslocation in interface MutableHttpHeadersuri - The URIpublic MutableHttpHeaders contentType(MediaType mediaType)
MutableHttpHeadersHttpHeaders.CONTENT_TYPE header to the given media type.contentType in interface MutableHttpHeadersmediaType - The media type