public class ServletCookies
extends java.lang.Object
implements io.micronaut.http.cookie.Cookies
Cookies
for serverless.Constructor and Description |
---|
ServletCookies(java.lang.String path,
io.micronaut.http.HttpHeaders headers,
io.micronaut.core.convert.ConversionService conversionService) |
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 ServletCookies(java.lang.String path, io.micronaut.http.HttpHeaders headers, io.micronaut.core.convert.ConversionService conversionService)
path
- The pathheaders
- The Netty HTTP headersconversionService
- The conversion servicepublic 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 <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>
public java.util.Collection<io.micronaut.http.cookie.Cookie> values()
values
in interface io.micronaut.core.convert.value.ConvertibleValues<io.micronaut.http.cookie.Cookie>