Package io.micronaut.http.simple.cookies
Class SimpleCookieFactory
- java.lang.Object
-
- io.micronaut.http.simple.cookies.SimpleCookieFactory
-
- All Implemented Interfaces:
CookieFactory
public class SimpleCookieFactory extends java.lang.Object implements CookieFactory
SimpleCookieFactory
implementation. This is the default fallback factory.- Since:
- 1.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.http.cookie.CookieFactory
INSTANCE
-
-
Constructor Summary
Constructors Constructor Description SimpleCookieFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cookie
create(java.lang.String name, java.lang.String value)
Create a new cookie.
-
-
-
Method Detail
-
create
public Cookie create(java.lang.String name, java.lang.String value)
Description copied from interface:CookieFactory
Create a new cookie.- Specified by:
create
in interfaceCookieFactory
- Parameters:
name
- The namevalue
- The value- Returns:
- A Cookie instance
-
-