public class Cookie extends Object
Constructor and Description |
---|
Cookie(String name,
String value) |
Cookie(String name,
String value,
boolean httpOnly) |
Modifier and Type | Method and Description |
---|---|
String |
getDomain() |
int |
getMaxAge() |
String |
getName() |
String |
getPath() |
String |
getValue() |
int |
getVersion() |
boolean |
isHttpOnly()
Tells if a cookie HTTP only or not.
|
boolean |
isSecure() |
void |
setDomain(String domain) |
void |
setHttpOnly()
Sets this cookie to be HTTP only.
|
void |
setHttpOnly(boolean httpOnly)
Sets this cookie to be Http only or not
|
void |
setMaxAge(int maxAge) |
void |
setPath(String path) |
void |
setSecure(boolean secure) |
void |
setValue(String value) |
void |
setVersion(int version) |
String |
toString() |
public void setMaxAge(int maxAge)
public int getMaxAge()
public void setPath(String path)
public String getPath()
public void setDomain(String domain)
public String getDomain()
public void setSecure(boolean secure)
public boolean isSecure()
public String getName()
public void setValue(String value)
public String getValue()
public int getVersion()
public void setVersion(int version)
public void setHttpOnly()
public boolean isHttpOnly()
public void setHttpOnly(boolean httpOnly)
Copyright © 2016. All rights reserved.