Package org.springframework.http
Class HttpCookie
- java.lang.Object
- org.springframework.http.HttpCookie
- Direct Known Subclasses:
ResponseCookie
public class HttpCookie extends Object
Represents an HTTP cookie as a name-value pair consistent with the content of the "Cookie" request header. TheResponseCookie
sub-class has the additional attributes expected in the "Set-Cookie" response header.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- See Also:
- RFC 6265
Constructor Summary
Constructors Constructor Description HttpCookie(String name, String value)
Constructor Detail
HttpCookie
public HttpCookie(String name, @Nullable String value)