Ajocado API 1.0.0.Alpha2

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 final implementation can be derived by this object
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CreateCookieOptions, DeleteCookieOptions

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

Options for manipulation with cookies.

Immutable implementation.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
CookieOptions()
           
 
Method Summary
protected  T copy()
           
 T domain(String domain)
          Specifies to which domain is cookie bound.
 String getAsString()
           
 String getDomain()
           
 String getPath()
           
 T path(String path)
          Specifies to which path is cookie bound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieOptions

public CookieOptions()
Method Detail

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()

getPath

public String getPath()

copy

protected T copy()

getAsString

public String getAsString()

Ajocado API 1.0.0.Alpha2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.