org.abstracthorizon.danube.tapestry
Class DanubeCookieSource

java.lang.Object
  extended by org.abstracthorizon.danube.tapestry.DanubeCookieSource
All Implemented Interfaces:
CookieSource

public class DanubeCookieSource
extends Object
implements CookieSource

Danube cookie source.

Author:
Daniel Sendula

Constructor Summary
DanubeCookieSource()
           
 
Method Summary
 String readCookieValue(String name)
          Reads cookie value
 void removeCookieValue(String name)
          Removes stored cookie
 void writeCookieValue(String name, String value)
          Stores cookie value
 void writeCookieValue(String name, String value, int maxAge)
          Stores cookie value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DanubeCookieSource

public DanubeCookieSource()
Method Detail

readCookieValue

public String readCookieValue(String name)
Reads cookie value

Specified by:
readCookieValue in interface CookieSource
Parameters:
name - cookie name
Returns:
cookie value

writeCookieValue

public void writeCookieValue(String name,
                             String value)
Stores cookie value

Specified by:
writeCookieValue in interface CookieSource
Parameters:
name - cookie name
value - value

writeCookieValue

public void writeCookieValue(String name,
                             String value,
                             int maxAge)
Stores cookie value

Specified by:
writeCookieValue in interface CookieSource
Parameters:
name - cookie name
value - value
maxAge - age of the cookie

removeCookieValue

public void removeCookieValue(String name)
Removes stored cookie

Specified by:
removeCookieValue in interface CookieSource
Parameters:
name - cookie name


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.