|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.selenium.Cookie
public class Cookie
| Nested Class Summary | |
|---|---|
static class |
Cookie.Builder
|
| Constructor Summary | |
|---|---|
Cookie(String name,
String value)
Create a cookie for the default path with the given name and value with no expiry set. |
|
Cookie(String name,
String value,
String path)
Create a cookie. |
|
Cookie(String name,
String value,
String path,
Date expiry)
Creates an insecure cookie with no domain specified. |
|
Cookie(String name,
String value,
String domain,
String path,
Date expiry)
Creates an insecure cookie. |
|
Cookie(String name,
String value,
String domain,
String path,
Date expiry,
boolean isSecure)
Creates a cookie. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Two cookies are equal if the name and value match |
String |
getDomain()
|
Date |
getExpiry()
|
String |
getName()
|
String |
getPath()
|
String |
getValue()
|
int |
hashCode()
|
boolean |
isSecure()
|
String |
toString()
|
protected void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Cookie(String name,
String value,
String path,
Date expiry)
name - The name of the cookie; may not be null or an empty string.value - The cookie value; may not be null.path - The path the cookie is visible to. If left blank or set to null, will be set to
"/".expiry - The cookie's expiration date; may be null.Cookie(String, String, String, String, Date)
public Cookie(String name,
String value,
String domain,
String path,
Date expiry)
name - The name of the cookie; may not be null or an empty string.value - The cookie value; may not be null.domain - The domain the cookie is visible to.path - The path the cookie is visible to. If left blank or set to null, will be set to
"/".expiry - The cookie's expiration date; may be null.Cookie(String, String, String, String, Date, boolean)
public Cookie(String name,
String value,
String domain,
String path,
Date expiry,
boolean isSecure)
name - The name of the cookie; may not be null or an empty string.value - The cookie value; may not be null.domain - The domain the cookie is visible to.path - The path the cookie is visible to. If left blank or set to null, will be set to
"/".expiry - The cookie's expiration date; may be null.isSecure - Whether this cookie requires a secure connection.
public Cookie(String name,
String value)
name - The cookie's namevalue - The cookie's value
public Cookie(String name,
String value,
String path)
name - The cookie's namevalue - The cookie's valuepath - The path the cookie is for| Method Detail |
|---|
public String getName()
public String getValue()
public String getDomain()
public String getPath()
public boolean isSecure()
public Date getExpiry()
protected void validate()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||