Package io.micronaut.gcp.function.http
Class GoogleCookies
java.lang.Object
io.micronaut.gcp.function.http.GoogleCookies
- All Implemented Interfaces:
io.micronaut.core.convert.ConversionServiceProvider,io.micronaut.core.convert.value.ConvertibleValues<io.micronaut.http.cookie.Cookie>,io.micronaut.core.value.ValueResolver<CharSequence>,io.micronaut.http.cookie.Cookies,Iterable<Map.Entry<String,io.micronaut.http.cookie.Cookie>>
Implementation of
Cookies for serverless.-
Field Summary
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionGoogleCookies(String path, io.micronaut.http.HttpHeaders headers, io.micronaut.core.convert.ConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescriptionOptional<io.micronaut.http.cookie.Cookie>findCookie(CharSequence name) <T> Optional<T>get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext) <T> Optional<T>get(CharSequence name, Class<T> requiredType) Set<io.micronaut.http.cookie.Cookie>getAll()@Nullable io.micronaut.http.cookie.Cookieput(CharSequence name, io.micronaut.http.cookie.Cookie cookie) Put a new cookie.Collection<io.micronaut.http.cookie.Cookie>values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.convert.value.ConvertibleValues
asMap, asMap, asProperties, contains, forEach, getConversionService, getValue, getValueType, isEmpty, iterator, subMap, subMap, subMapMethods inherited from interface io.micronaut.http.cookie.Cookies
get, namesMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.micronaut.core.value.ValueResolver
get, get
-
Constructor Details
-
GoogleCookies
public GoogleCookies(String path, io.micronaut.http.HttpHeaders headers, io.micronaut.core.convert.ConversionService conversionService) - Parameters:
path- The pathheaders- The Netty HTTP headersconversionService- The conversion service
-
-
Method Details
-
getAll
- Specified by:
getAllin interfaceio.micronaut.http.cookie.Cookies
-
findCookie
- Specified by:
findCookiein interfaceio.micronaut.http.cookie.Cookies
-
get
- Specified by:
getin interfaceio.micronaut.core.value.ValueResolver<CharSequence>
-
get
public <T> Optional<T> get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext) - Specified by:
getin interfaceio.micronaut.core.value.ValueResolver<CharSequence>
-
values
- Specified by:
valuesin interfaceio.micronaut.core.convert.value.ConvertibleValues<io.micronaut.http.cookie.Cookie>
-
put
@Nullable public @Nullable io.micronaut.http.cookie.Cookie put(CharSequence name, io.micronaut.http.cookie.Cookie cookie) Put a new cookie.- Parameters:
name- the name of the cookiecookie- the cookie itself- Returns:
- previous value for given name
-