Graphene Selenium: API 2.0.0.Alpha1

org.jboss.arquillian.ajocado.cookie
Class Cookie

java.lang.Object
  extended by org.jboss.arquillian.ajocado.cookie.Cookie
All Implemented Interfaces:
Serializable, Cloneable, SeleniumRepresentable

public final class Cookie
extends Object
implements SeleniumRepresentable, Cloneable, Serializable

The immutable representation of Cookie

Version:
$Revision$
Author:
Lukas Fryc
See Also:
Serialized Form

Method Summary
static Cookie createCookie(String name, String value)
          Creates cookie with specified name and value.
 boolean equals(Object obj)
           
 String getName()
          Returns name of the cookie
 String getValue()
          Returns value of the cookie
 int hashCode()
           
 String inSeleniumRepresentation()
          Returns Selenium's string representation of this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createCookie

public static Cookie createCookie(String name,
                                  String value)
Creates cookie with specified name and value.

Parameters:
name - the name of cookie (non-null)
value - the value for cookie (non-null)
Returns:
new cookie with specified name and value

getName

public String getName()
Returns name of the cookie

Returns:
name of the cookie

getValue

public String getValue()
Returns value of the cookie

Returns:
value of the cookie

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Graphene Selenium: API 2.0.0.Alpha1

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