| Package | Description |
|---|---|
| io.mangoo.utils |
| Modifier and Type | Method and Description |
|---|---|
static CookieBuilder |
CookieBuilder.create() |
CookieBuilder |
CookieBuilder.discard(boolean discard)
Sets discarding of the cookie
Default is false
|
CookieBuilder |
CookieBuilder.domain(String domain)
Sets the domain of the cookie
Default is null
|
CookieBuilder |
CookieBuilder.expires(LocalDateTime expires)
Sets the date when the cookie expires
Default is now plus 1 day
|
CookieBuilder |
CookieBuilder.httpOnly(boolean httpOnly)
Sets if the cookie can only be used of HTTP
connections
Default is false
|
CookieBuilder |
CookieBuilder.maxAge(Integer maxAge)
Sets the max age of the cookie
Default value is null
|
CookieBuilder |
CookieBuilder.name(String name)
Sets the name of the cookie
Default is ""
|
CookieBuilder |
CookieBuilder.path(String path)
Sets the path of the cookie
Default is /
|
CookieBuilder |
CookieBuilder.secure(boolean secure)
Sets if the cookie can only be used of HTTPS
connections
Default is false
|
CookieBuilder |
CookieBuilder.value(String value)
Sets the value of the cookie
Default is ""
|
Copyright © 2016. All rights reserved.