public class NettyCookies extends Object implements Cookies
Cookie
.EMPTY
Constructor and Description |
---|
NettyCookies(String path,
io.netty.handler.codec.http.HttpHeaders nettyHeaders,
ConversionService conversionService) |
Modifier and Type | Method and Description |
---|---|
Optional<Cookie> |
findCookie(CharSequence name)
Find a
Cookie for the given name. |
<T> Optional<T> |
get(CharSequence name,
ArgumentConversionContext<T> conversionContext)
Resolve the given property for the given name.
|
<T> Optional<T> |
get(CharSequence name,
Class<T> requiredType)
Resolve the given property for the given name.
|
Set<Cookie> |
getAll() |
Collection<Cookie> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asMap, asMap, asProperties, contains, empty, forEach, getValueType, isEmpty, iterator, of, subMap, subMap, subMap
get, get
forEach, spliterator
public NettyCookies(String path, io.netty.handler.codec.http.HttpHeaders nettyHeaders, ConversionService conversionService)
path
- The pathnettyHeaders
- The Netty HTTP headersconversionService
- The conversion servicepublic Optional<Cookie> findCookie(CharSequence name)
Cookies
Cookie
for the given name.findCookie
in interface Cookies
name
- The cookieOptional
cookiepublic <T> Optional<T> get(CharSequence name, Class<T> requiredType)
ValueResolver
get
in interface ValueResolver<CharSequence>
T
- The concrete typename
- The namerequiredType
- The required typepublic <T> Optional<T> get(CharSequence name, ArgumentConversionContext<T> conversionContext)
ValueResolver
get
in interface ValueResolver<CharSequence>
T
- The concrete typename
- The nameconversionContext
- The conversion contextpublic Collection<Cookie> values()
values
in interface ConvertibleValues<Cookie>