Graphene Selenium: API 2.0.0.Alpha1

org.jboss.arquillian.ajocado.cookie
Class CookieOptions<T extends CookieOptions<T>>

java.lang.Object
  extended by org.jboss.arquillian.ajocado.cookie.CookieOptions<T>
Type Parameters:
T - What type of cookie options are represented by this object
All Implemented Interfaces:
Cloneable, SeleniumRepresentable
Direct Known Subclasses:
CookieCreateOptions, CookieDeleteOptions

public abstract class CookieOptions<T extends CookieOptions<T>>
extends Object
implements Cloneable, SeleniumRepresentable

Abstract immutable representation of options for manipulation with cookies.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
CookieOptions()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieOptions

public CookieOptions()
Method Detail

forCreation

public static CookieCreateOptions forCreation()
Creates options for creating cookies

Returns:
options for creating cookies

forDeletion

public static CookieDeleteOptions forDeletion()
Creates options for deleting cookies

Returns:
options for deleting cookies

domain

public T domain(String domain)
Specifies to which domain is cookie bound.

Parameters:
domain -
Returns:
domain to which is cookie bound

path

public T path(String path)
Specifies to which path is cookie bound.

Parameters:
path -
Returns:
path to which is cookie bound

getDomain

public String getDomain()
Returns the domain for which is cookie registered

Returns:
the domain for which is cookie registered

getPath

public String getPath()
Returns the path for which is cookie registered

Returns:
the path for which is cookie registered

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

inSeleniumRepresentation

public String inSeleniumRepresentation()
Description copied from interface: SeleniumRepresentable
Returns Selenium's string representation of this object

Specified by:
inSeleniumRepresentation in interface SeleniumRepresentable
Returns:
Selenium's string representation of this object

append

protected void append(StringBuffer stringBuffer,
                      String appendix)

copy

protected T copy()

Graphene Selenium: API 2.0.0.Alpha1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.