org.apache.turbine.util.parser |
Parser for CGI parameters and path info data.
$Id: package.html 534527 2007-05-02 16:10:59Z tv $
|
Java Source File Name | Type | Comment |
BaseValueParser.java | Class | BaseValueParser is a base class for classes that need to parse
name/value Parameters, for example GET/POST data or Cookies
(DefaultParameterParser and DefaultCookieParser).
It can also be used standalone, for an example see DataStreamParser.
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. |
BaseValueParserCactusTest.java | Class | Used to test how BaseValueParser works with TimeSelector fields.
author: Jeffrey D. |
BaseValueParserTest.java | Class | test whether the Default parameter parser returns its uploaded file items
in the keySet().
author: Henning P. |
CookieParser.java | Interface | CookieParser is an interface to a utility to to get and set values
of Cookies on the Client Browser. |
CSVParser.java | Class | CSVParser is used to parse a stream with comma-separated values and
generate ParameterParser objects which can be used to
extract the values in the desired type.
The class extends the abstract class DataStreamParser and implements
initTokenizer with suitable values for CSV files to provide this
functionality.
The class (indirectly through DataStreamParser) implements the
java.util.Iterator interface for convenience.
This allows simple use in a Velocity template for example:
#foreach ($row in $csvfile)
Name: $row.Name
Description: $row.Description
#end
author: Sean Legassick author: Martin van den Bemt author: Henning P. |
CSVParserCactusTest.java | Class | Test the CSVParser. |
CSVParserTest.java | Class | test whether the Default parameter parser returns its uploaded file items
in the keySet().
author: Henning P. |
DataStreamParser.java | Class | DataStreamParser is used to parse a stream with a fixed format and
generate ValueParser objects which can be used to extract the values
in the desired type.
The class itself is abstract - a concrete subclass which implements
the initTokenizer method such as CSVParser or TSVParser is required
to use the functionality.
The class implements the java.util.Iterator interface for convenience.
This allows simple use in a Velocity template for example:
#foreach ($row in $datastream)
Name: $row.Name
Description: $row.Description
#end
author: Sean Legassick author: Martin van den Bemt author: Henning P. |
DefaultCookieParser.java | Class | CookieParser is used to get and set values of Cookies on the Client
Browser. |
DefaultParameterParser.java | Class | DefaultParameterParser is a utility object to handle parsing and
retrieving the data passed via the GET/POST/PATH_INFO arguments.
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. |
DefaultParameterParserTest.java | Class | test whether the Default parameter parser returns its uploaded file items
in the keySet().
author: Henning P. |
ParameterParser.java | Interface | ParameterParser is an interface to a utility to handle parsing and
retrieving the data passed via the GET/POST/PATH_INFO arguments.
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. |
ParserUtils.java | Class | Static helpers for folding fields to upper or lower case
author: Henning P. |
PropertyBean.java | Class | |
TSVParser.java | Class | TSVParser is used to parse a stream with tab-separated values and
generate ParameterParser objects which can be used to
extract the values in the desired type. |
TSVParserTest.java | Class | Test the TSVParser. |
ValueParser.java | Interface | ValueParser is a base interface for classes that need to parse
name/value Parameters, for example GET/POST data or Cookies
(ParameterParser and CookieParser)
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. |