Class NettyCookieDecoder
java.lang.Object
io.micronaut.http.client.jdk.cookie.NettyCookieDecoder
- All Implemented Interfaces:
Ordered
,CookieDecoder
@Singleton
@Internal
@Requires(classes=NettyClientHttpRequest.class)
public class NettyCookieDecoder
extends Object
implements CookieDecoder
A cookie decoder that extracts cookies from the
NettyClientHttpRequest
if it is present.
Required as NettyClientHttpRequest
does not implement HttpRequest.getCookies()
.- Since:
- 4.0.0
- Author:
- Tim Yates
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
-
Constructor Details
-
NettyCookieDecoder
-
-
Method Details
-
decode
Description copied from interface:CookieDecoder
Decode the cookies from the request.- Specified by:
decode
in interfaceCookieDecoder
- Parameters:
request
- the request- Returns:
- the cookies or empty if none
-
getOrder
public int getOrder()
-