public class DefaultServletCookies
extends java.lang.Object
implements io.micronaut.http.cookie.Cookies
Cookies
ontop of the Servlet API.Constructor and Description |
---|
DefaultServletCookies(javax.servlet.http.Cookie[] cookies)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<io.micronaut.http.cookie.Cookie> |
findCookie(java.lang.CharSequence name) |
<T> java.util.Optional<T> |
get(java.lang.CharSequence name,
io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext) |
<T> java.util.Optional<T> |
get(java.lang.CharSequence name,
java.lang.Class<T> requiredType) |
java.util.Set<io.micronaut.http.cookie.Cookie> |
getAll() |
java.util.Collection<io.micronaut.http.cookie.Cookie> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DefaultServletCookies(javax.servlet.http.Cookie[] cookies)
cookies
- The cookiespublic java.util.Set<io.micronaut.http.cookie.Cookie> getAll()
getAll
in interface io.micronaut.http.cookie.Cookies
public java.util.Optional<io.micronaut.http.cookie.Cookie> findCookie(java.lang.CharSequence name)
findCookie
in interface io.micronaut.http.cookie.Cookies
public java.util.Collection<io.micronaut.http.cookie.Cookie> values()
values
in interface io.micronaut.core.convert.value.ConvertibleValues<io.micronaut.http.cookie.Cookie>
public <T> java.util.Optional<T> get(java.lang.CharSequence name, java.lang.Class<T> requiredType)
get
in interface io.micronaut.core.value.ValueResolver<java.lang.CharSequence>
public <T> java.util.Optional<T> get(java.lang.CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext)
get
in interface io.micronaut.core.value.ValueResolver<java.lang.CharSequence>