Interface Cookie
- All Superinterfaces:
Comparable<Cookie>
- All Known Implementing Classes:
CookieImpl
Русский: Описывает HTTP Cookie параметр
English: Describes HTTP Cookie parameter
Описание Куки параметра
English: Describes HTTP Cookie parameter
Описание Куки параметра
-
Method Summary
Modifier and TypeMethodDescriptioncomment()default intdomain()expires()booleanbooleanbooleanbooleanisSecure()maxAge()name()path()setComment(String comment) setDiscard(boolean discard) setExpires(ZonedDateTime expires) setHttpOnly(boolean httpOnly) setSameSite(boolean sameSite) setSameSiteMode(String mode) setSecure(boolean secure) setVersion(int version) value()intversion()
-
Method Details
-
name
String name()- Returns:
- Русский: Возвращает имя Cookie
English: Returns the name of the cookie
-
value
String value()- Returns:
- Русский: Возвращает значение Cookie
English: Returns value of the cookie
-
setValue
-
path
String path() -
setPath
-
domain
String domain() -
setDomain
-
maxAge
Integer maxAge() -
setMaxAge
-
isDiscard
boolean isDiscard() -
setDiscard
-
isSecure
boolean isSecure() -
setSecure
-
version
int version() -
setVersion
-
isHttpOnly
boolean isHttpOnly() -
setHttpOnly
-
expires
ZonedDateTime expires() -
setExpires
-
comment
String comment() -
setComment
-
isSameSite
boolean isSameSite() -
setSameSite
-
sameSiteMode
String sameSiteMode() -
setSameSiteMode
-
compareTo
- Specified by:
compareToin interfaceComparable<Cookie>
-