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