|
||||||||||
| 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(java.lang.String name,
java.lang.String value)
Create a cookie for the default path with the given name and value with no expiry set. |
|
Cookie(java.lang.String name,
java.lang.String value,
java.lang.String path)
Create a cookie. |
|
Cookie(java.lang.String name,
java.lang.String value,
java.lang.String path,
java.util.Date expiry)
Creates an insecure cookie with no domain specified. |
|
Cookie(java.lang.String name,
java.lang.String value,
java.lang.String domain,
java.lang.String path,
java.util.Date expiry)
Creates an insecure cookie. |
|
Cookie(java.lang.String name,
java.lang.String value,
java.lang.String domain,
java.lang.String path,
java.util.Date expiry,
boolean isSecure)
Creates a cookie. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Two cookies are equal if the name and value match |
java.lang.String |
getDomain()
|
java.util.Date |
getExpiry()
|
java.lang.String |
getName()
|
java.lang.String |
getPath()
|
java.lang.String |
getValue()
|
int |
hashCode()
|
boolean |
isSecure()
|
java.lang.String |
toString()
|
protected void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Cookie(java.lang.String name,
java.lang.String value,
java.lang.String path,
java.util.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(java.lang.String name,
java.lang.String value,
java.lang.String domain,
java.lang.String path,
java.util.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(java.lang.String name,
java.lang.String value,
java.lang.String domain,
java.lang.String path,
java.util.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(java.lang.String name,
java.lang.String value)
name - The cookie's namevalue - The cookie's value
public Cookie(java.lang.String name,
java.lang.String value,
java.lang.String path)
name - The cookie's namevalue - The cookie's valuepath - The path the cookie is for| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getValue()
public java.lang.String getDomain()
public java.lang.String getPath()
public boolean isSecure()
public java.util.Date getExpiry()
protected void validate()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||