Package com.oorian.jakarta
Class JakartaCookie
java.lang.Object
com.oorian.jakarta.JakartaCookie
Utility class for converting between
OorianCookie and
Cookie.
This class provides static methods to convert in both directions, preserving all cookie attributes (name, value, path, domain, maxAge, secure, httpOnly).
- Since:
- 2.1
- Version:
- 1.0
- Author:
- Oorian Framework
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.servlet.http.CookietoJakartaCookie(OorianCookie webCookie) Converts a framework-agnosticOorianCookieto a JakartaCookie.static OorianCookietoWebCookie(jakarta.servlet.http.Cookie cookie) Converts a JakartaCookieto a framework-agnosticOorianCookie.
-
Method Details
-
toWebCookie
Converts a JakartaCookieto a framework-agnosticOorianCookie.- Parameters:
cookie- The Jakarta cookie to convert.- Returns:
- A new
OorianCookiewith the same attributes.
-
toJakartaCookie
Converts a framework-agnosticOorianCookieto a JakartaCookie.- Parameters:
webCookie- The framework cookie to convert.- Returns:
- A new Jakarta
Cookiewith the same attributes.
-