T - What type of cookie options are represented by this objectpublic abstract class CookieOptions<T extends CookieOptions<T>> extends Object implements Cloneable, SeleniumRepresentable
Abstract immutable representation of options for manipulation with cookies.
| Modifier and Type | Field and Description |
|---|---|
protected String |
domain |
protected String |
path |
| Constructor and Description |
|---|
CookieOptions() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(StringBuffer stringBuffer,
String appendix) |
Object |
clone() |
protected T |
copy() |
T |
domain(String domain)
Specifies to which domain is cookie bound.
|
static CookieCreateOptions |
forCreation()
Creates options for creating cookies
|
static CookieDeleteOptions |
forDeletion()
Creates options for deleting cookies
|
String |
getDomain()
Returns the domain for which is cookie registered
|
String |
getPath()
Returns the path for which is cookie registered
|
String |
inSeleniumRepresentation()
Returns Selenium's string representation of this object
|
T |
path(String path)
Specifies to which path is cookie bound.
|
public static CookieCreateOptions forCreation()
public static CookieDeleteOptions forDeletion()
public T domain(String domain)
domain - public T path(String path)
path - public String getDomain()
public String getPath()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String inSeleniumRepresentation()
SeleniumRepresentableinSeleniumRepresentation in interface SeleniumRepresentableprotected void append(StringBuffer stringBuffer, String appendix)
protected T copy()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.