Package io.micronaut.http.cookie
Interface Cookies
- All Superinterfaces:
ConversionServiceProvider
,ConvertibleValues<Cookie>
,Iterable<Map.Entry<String,
,Cookie>> ValueResolver<CharSequence>
- All Known Implementing Classes:
NettyCookies
,SimpleCookies
Models the defined
Cookie
instances in an application.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptionfindCookie
(CharSequence name) Find aCookie
for the given name.default Cookie
get
(CharSequence name) Get a cookie by name or return null.getAll()
names()
Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues
asMap, asMap, asProperties, contains, forEach, getConversionService, getValue, getValueType, isEmpty, iterator, subMap, subMap, subMap, values
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get, get
-
Method Details
-
getAll
- Returns:
- A set of the cookies
-
findCookie
Find aCookie
for the given name.- Parameters:
name
- The cookie- Returns:
- An
Optional
cookie
-
get
Get a cookie by name or return null.- Parameters:
name
- The name of the cookie- Returns:
- The Cookie instance
-
names
- Specified by:
names
in interfaceConvertibleValues<Cookie>
- Returns:
- The names of the values
-