org.apache.turbine.util
Interface CookieParser

All Superinterfaces:
CookieParser, ValueParser

Deprecated. Use org.apache.turbine.util.parser.CookieParser instead.

public interface CookieParser
extends CookieParser

CookieParser is an interface to a utility to to get and set values of Cookies on the Client Browser. You can use CookieParser to convert Cookie values to various types or to set Bean values with setParameters(). Servlet Spec for more information on Cookies.

Use set() or unset() to Create or Destroy Cookies.

NOTE: The name= portion of a name=value pair may be converted to lowercase or uppercase when the object is initialized and when new data is added. This behaviour is determined by the url.case.folding property in TurbineResources.properties. Adding a name/value pair may overwrite existing name=value pairs if the names match:

 CookieParser cp = data.getCookies();
 cp.add("ERROR",1);
 cp.add("eRrOr",2);
 int result = cp.getInt("ERROR");
 
In the above example, result is 2.

Version:
$Id: CookieParser.java 264148 2005-08-29 14:21:04Z henning $
Author:
Ilkka Priha, Leon Messerschmidt

Field Summary
 
Fields inherited from interface org.apache.turbine.util.parser.CookieParser
AGE_DELETE, AGE_SESSION
 
Fields inherited from interface org.apache.turbine.util.parser.ValueParser
URL_CASE_FOLDING, URL_CASE_FOLDING_LOWER, URL_CASE_FOLDING_NONE, URL_CASE_FOLDING_UPPER
 
Methods inherited from interface org.apache.turbine.util.parser.CookieParser
getCookiePath, getRequest, getRunData, set, set, setCookiePath, setData, setRunData, unset
 
Methods inherited from interface org.apache.turbine.util.parser.ValueParser
add, add, add, add, add, add, append, clear, containsDateSelectorKeys, containsKey, convert, get, getBigDecimal, getBigDecimal, getBigDecimals, getBool, getBool, getBoolean, getBoolean, getBooleanObject, getBooleanObject, getByte, getByte, getByteObject, getByteObject, getBytes, getCharacterEncoding, getDate, getDate, getDate, getDouble, getDouble, getDoubleObject, getDoubleObject, getDoubleObjects, getDoubles, getFloat, getFloat, getFloatObject, getFloatObject, getFloatObjects, getFloats, getInt, getInt, getInteger, getInteger, getInteger, getIntegers, getIntObject, getIntObject, getIntObjects, getInts, getKeys, getLong, getLong, getLongObject, getLongObject, getLongObjects, getLongs, getNumberKey, getObject, getObjects, getString, getString, getStringKey, getStrings, getStrings, keys, keySet, remove, setCharacterEncoding, setProperties, setString, setStrings, toString
 



Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.