Class CompositeCookieDecoder
java.lang.Object
io.micronaut.http.client.jdk.cookie.CompositeCookieDecoder
- All Implemented Interfaces:
Ordered,CookieDecoder
@Primary
@Singleton
@Internal
public class CompositeCookieDecoder
extends Object
implements CookieDecoder
Iterate the cookieDecoders and return the first one that returns cookies.
- Since:
- 4.0.0
- Author:
- Tim Yates
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(HttpRequest<?> request) Decode the cookies from the request.
-
Constructor Details
-
CompositeCookieDecoder
-
-
Method Details
-
decode
Description copied from interface:CookieDecoderDecode the cookies from the request.- Specified by:
decodein interfaceCookieDecoder- Parameters:
request- the request- Returns:
- the cookies or empty if none
-