Package io.micronaut.http.cookie
Interface CookieFactory
- All Known Implementing Classes:
NettyCookieFactory
,SimpleCookieFactory
public interface CookieFactory
A CookieFactory creates
Cookie
instances and should be implemented by a concrete server.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
-
Method Summary
-
Field Details
-
INSTANCE
The defaultCookieFactory
instance.
-
-
Method Details
-
create
Create a new cookie.- Parameters:
name
- The namevalue
- The value- Returns:
- A Cookie instance
-