public class Cookie
extends java.lang.Object
Cookie class.
| Constructor and Description |
|---|
Cookie(java.lang.String name,
java.lang.String value)
Constructor for Cookie.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
domain()
domain.
|
boolean |
isHttpOnly()
isHttpOnly.
|
boolean |
isSecure()
isSecure.
|
long |
maxAge()
maxAge.
|
java.lang.String |
name()
name.
|
java.lang.String |
path()
path.
|
void |
setDomain(java.lang.String domain)
Setter for the field
domain. |
void |
setHttpOnly(boolean httpOnly)
Setter for the field
httpOnly. |
void |
setMaxAge(long maxAge)
Setter for the field
maxAge. |
void |
setName(java.lang.String name)
Setter for the field
name. |
void |
setPath(java.lang.String path)
Setter for the field
path. |
void |
setSecure(boolean secure)
Setter for the field
secure. |
void |
setValue(java.lang.String value)
Setter for the field
value. |
void |
setVersion(int version)
Setter for the field
version. |
java.lang.String |
value()
value.
|
int |
version()
version.
|
public Cookie(java.lang.String name,
java.lang.String value)
Constructor for Cookie.
name - a String object.value - a String object.public java.lang.String name()
name.
String object.public void setName(java.lang.String name)
Setter for the field name.
name - a String object.public java.lang.String value()
value.
String object.public void setValue(java.lang.String value)
Setter for the field value.
value - a String object.public java.lang.String domain()
domain.
String object.public void setDomain(java.lang.String domain)
Setter for the field domain.
domain - a String object.public long maxAge()
maxAge.
public void setMaxAge(long maxAge)
Setter for the field maxAge.
maxAge - a long.public java.lang.String path()
path.
String object.public void setPath(java.lang.String path)
Setter for the field path.
path - a String object.public boolean isSecure()
isSecure.
public void setSecure(boolean secure)
Setter for the field secure.
secure - a boolean.public int version()
version.
public void setVersion(int version)
Setter for the field version.
version - a int.public boolean isHttpOnly()
isHttpOnly.
public void setHttpOnly(boolean httpOnly)
Setter for the field httpOnly.
httpOnly - a boolean.Copyright © 2022. All rights reserved.