Graphene Selenium: API 2.0.0.Alpha1

org.jboss.arquillian.ajocado.cookie
Class CookieCreateOptions

java.lang.Object
  extended by org.jboss.arquillian.ajocado.cookie.CookieOptions<CookieCreateOptions>
      extended by org.jboss.arquillian.ajocado.cookie.CookieCreateOptions
All Implemented Interfaces:
Cloneable, SeleniumRepresentable

public class CookieCreateOptions
extends CookieOptions<CookieCreateOptions>

Immutable representation of options for creating cookies.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
 Long getMaxAge()
          Returns the max time which this cookie should live
 String inSeleniumRepresentation()
          Returns Selenium's string representation of this object
 CookieCreateOptions maxAge(long maxAge)
          Specifies max time to live in seconds.
 
Methods inherited from class org.jboss.arquillian.ajocado.cookie.CookieOptions
append, clone, copy, domain, forCreation, forDeletion, getDomain, getPath, path
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

maxAge

public CookieCreateOptions maxAge(long maxAge)
Specifies max time to live in seconds.

Parameters:
maxAge - max time to live in seconds
Returns:
the create cookie options with max age specified

getMaxAge

public Long getMaxAge()
Returns the max time which this cookie should live

Returns:
the max time which this cookie should live

inSeleniumRepresentation

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

Specified by:
inSeleniumRepresentation in interface SeleniumRepresentable
Overrides:
inSeleniumRepresentation in class CookieOptions<CookieCreateOptions>
Returns:
Selenium's string representation of this object

Graphene Selenium: API 2.0.0.Alpha1

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