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 aCookiefor the given name.default Cookieget(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, valuesMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get, get
-
Method Details
-
getAll
- Returns:
- A set of the cookies
-
findCookie
Find aCookiefor the given name.- Parameters:
name- The cookie- Returns:
- An
Optionalcookie
-
get
Get a cookie by name or return null.- Parameters:
name- The name of the cookie- Returns:
- The Cookie instance
-
names
- Specified by:
namesin interfaceConvertibleValues<Cookie>- Returns:
- The names of the values
-