Package io.micronaut.http.cookie
Class CookieUtils
java.lang.Object
io.micronaut.http.cookie.CookieUtils
Utils class to work with cookies.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetCookieHeader(MutableHttpHeaders headers, Cookie cookie) Sets the HTTP Header Set-Cookie with the supplied cookie encoded.static voidsetCookieHeader(MutableHttpHeaders headers, Cookie cookie, Integer cookieByteLimit) Sets the HTTP Header Set-Cookie with the supplied cookie encoded.static voidverifyCookieSize(Cookie cookie, String cookieEncoded) static voidverifyCookieSize(Cookie cookie, String cookieEncoded, Integer cookieByteLimit)
-
Method Details
-
verifyCookieSize
- Parameters:
cookie- CookiecookieEncoded- Encoded cookie
-
verifyCookieSize
- Parameters:
cookie- CookiecookieEncoded- Encoded cookiecookieByteLimit- Cookie byte Limit
-
setCookieHeader
public static void setCookieHeader(MutableHttpHeaders headers, Cookie cookie, Integer cookieByteLimit) Sets the HTTP Header Set-Cookie with the supplied cookie encoded.- Parameters:
headers- HTTP Headerscookie- CookiecookieByteLimit- Cookie byte Limit
-
setCookieHeader
Sets the HTTP Header Set-Cookie with the supplied cookie encoded.- Parameters:
headers- HTTP Headerscookie- Cookie
-