public interface Cookies extends ConvertibleValues<Cookie>
Cookie
instances in an application.EMPTY
Modifier and Type | Method and Description |
---|---|
Optional<Cookie> |
findCookie(CharSequence name)
Find a
Cookie for the given name. |
default Cookie |
get(CharSequence name)
Get a cookie by name or return null.
|
Set<Cookie> |
getAll() |
default Set<String> |
names() |
asMap, asMap, asProperties, contains, empty, forEach, getValue, getValueType, isEmpty, iterator, of, subMap, subMap, subMap, values
get, get, get, get
forEach, spliterator
Optional<Cookie> findCookie(CharSequence name)
Cookie
for the given name.name
- The cookieOptional
cookiedefault Cookie get(CharSequence name)
name
- The name of the cookiedefault Set<String> names()
names
in interface ConvertibleValues<Cookie>