Package org.apache.fulcrum.parser
Class BaseValueParser
java.lang.Object
org.apache.fulcrum.parser.BaseValueParser
- All Implemented Interfaces:
- Iterable<String>,- org.apache.avalon.framework.logger.LogEnabled,- ParserServiceSupport,- ValueParser
- Direct Known Subclasses:
- DefaultCookieParser,- DefaultParameterParser,- StringValueParser
public class BaseValueParser
extends Object
implements ValueParser, ParserServiceSupport, org.apache.avalon.framework.logger.LogEnabled
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. This behavior 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:
 ValueParser vp = new BaseValueParser();
 vp.add("ERROR",1);
 vp.add("eRrOr",2);
 int result = vp.getInt("ERROR");
 
 In the above example, result is 2.- Version:
- $Id$
- Author:
- Ilkka Priha, Jon S. Stevens, Sean Legassick, Jason van Zyl, Jürgen Hoffmann, Thomas Vandahl
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.fulcrum.parser.ValueParserValueParser.URLCaseFolding
- 
Field SummaryFieldsModifier and TypeFieldDescriptionRandom access storage for parameter data.protected ParserServiceThe ParserService instance to query for conversion and configurationFields inherited from interface org.apache.fulcrum.parser.ValueParserDEFAULT_CHARACTER_ENCODING
- 
Constructor SummaryConstructorsConstructorDescriptionBaseValueParser(String characterEncoding) Constructor that takes a character encodingBaseValueParser(String characterEncoding, Locale locale) Constructor that takes a character encoding and a locale
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd a name/value pair into this object.voidAdd a name/value pair into this object.voidAdd a name/value pair into this object.voidAdd a name/value pair into this object.voidAdd a name/value pair into this object.voidAdd an array of Strings for a key.voidclear()Clear all name/value pairs out of this object.booleancontainsKey(Object key) Determine whether a given key has been inserted.Trims the string data and applies the conversion specified in the property given by URL_CASE_FOLDING.convertAndTrim(String value) Convert a String value according to the url-case-folding property.convertAndTrim(String value, ValueParser.URLCaseFolding fold) A convert method, which trims the string data and applies the conversion specified in the parameter given.voiddispose()Disposes the parser.voidenableLogging(org.apache.avalon.framework.logger.Logger logger) Return a String for the given name.getBigDecimal(String name) Return a BigDecimal for the given name.getBigDecimal(String name, BigDecimal defaultValue) Return a BigDecimal for the given name.getBigDecimals(String name) Return an array of BigDecimals for the given name.booleangetBoolean(String name) Return a boolean for the given name.booleangetBoolean(String name, boolean defaultValue) Return a boolean for the given name.getBooleanObject(String name) Returns a Boolean object for the given name.getBooleanObject(String name, Boolean defaultValue) Returns a Boolean object for the given name.Boolean[]getBooleanObjects(String name) Return an array of Booleans for the given name.boolean[]getBooleans(String name) Return an array of booleans for the given name.byteReturn a byte for the given name.byteReturn a byte for the given name.getByteObject(String name) Return a byte for the given name.getByteObject(String name, Byte defaultValue) Return a byte for the given name.byte[]Return an array of bytes for the given name.Get the character encoding that will be used by this ValueParser.Returns aDateobject.getDate(String name, DateFormat df) Returns aDateobject.getDate(String name, DateFormat df, Date defaultValue) Returns aDateobject.Get the date format that will be used by this ValueParser.doubleReturn a double for the given name.doubleReturn a double for the given name.getDoubleObject(String name) Return a Double for the given name.getDoubleObject(String name, Double defaultValue) Return a Double for the given name.Double[]getDoubleObjects(String name) Return an array of doubles for the given name.double[]getDoubles(String name) Return an array of doubles for the given name.floatReturn a float for the given name.floatReturn a float for the given name.getFloatObject(String name) Return a float for the given name.getFloatObject(String name, Float defaultValue) Return a Float for the given name.Float[]getFloatObjects(String name) Return an array of floats for the given name.float[]Return an array of floats for the given name.intReturn an int for the given name.intReturn an int for the given name.getIntObject(String name) Return an Integer for the given name.getIntObject(String name, Integer defaultValue) Return an Integer for the given name.Integer[]getIntObjects(String name) Return an array of Integers for the given name.int[]Return an array of ints for the given name.String[]getKeys()Returns all the available parameter names.final LocaleGet the locale that will be used by this ValueParser.protected org.apache.avalon.framework.logger.LoggerProvide an Avalon logger to the derived classeslongReturn a long for the given name.longReturn a long for the given name.getLongObject(String name) Return a Long for the given name.getLongObject(String name, Long defaultValue) Return a Long for the given name.Long[]getLongObjects(String name) Return an array of Longs for the given name.long[]Return an array of longs for the given name.Get the number format that will be used by this ValueParser.Return an Object for the given name.Object[]getObjects(String name) Return an array of Objects for the given name.protected String[]fetches a key from the parameters map.Return a String for the given name.Return a String for the given name.String[]getStrings(String name) Return an array of Strings for the given name.String[]getStrings(String name, String[] defaultValue) Return an array of Strings for the given name.protected Object[]getToStringParam(String name) This method is only used in toString() and can be used by derived classes to add their local parameters to the toString()Gets the folding value from the ParserService configurationbooleanChecks whether the object is disposed.booleanisValid()iterator()Gets an iterator over the set of keyskeySet()Gets the set of keysprotected voidPuts a key into the parameters map.final voidrecycle()Recycles the parser.final voidRecycles the parser with a character encoding.Removes the named parameter from the contained hashtable.final voidSet the character encoding that will be used by this ValueParser.final voidSet the date format that will be used by this ValueParser.final voidSet the locale that will be used by this ValueParser.voidSet the number format that will be used by this ValueParser.voidsetParserService(ParserService parserService) Set a ParserService instancevoidsetProperties(Object bean) Uses bean introspection to set writable properties of bean from the parameters, where a (case-insensitive) name match between the bean property and the parameter is looked for.protected voidsetProperty(Object bean, PropertyDescriptor prop) Set the property 'prop' in the bean to the value of the corresponding parameters.voidSet a parameter to a specific value.voidsetStrings(String name, String[] values) Set a parameter to a specific value.toString()Simple method that attempts to get a textual representation of this object's name/value pairs.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
parserServiceThe ParserService instance to query for conversion and configuration
- 
parametersRandom access storage for parameter data.
 
- 
- 
Constructor Details- 
BaseValueParserpublic BaseValueParser()
- 
BaseValueParserConstructor that takes a character encoding- Parameters:
- characterEncoding- desired character encoding
 
- 
BaseValueParserConstructor that takes a character encoding and a locale- Parameters:
- characterEncoding- Sets the character encoding
- locale- Sets the locale
 
 
- 
- 
Method Details- 
setParserServiceSet a ParserService instance- Specified by:
- setParserServicein interface- ParserServiceSupport
- Parameters:
- parserService- The parser service instance
 
- 
enableLoggingpublic void enableLogging(org.apache.avalon.framework.logger.Logger logger) - Specified by:
- enableLoggingin interface- org.apache.avalon.framework.logger.LogEnabled
- Parameters:
- logger- The logger to be used
- See Also:
 
- 
getLoggerprotected org.apache.avalon.framework.logger.Logger getLogger()Provide an Avalon logger to the derived classes- Returns:
- An Avalon logger instance
 
- 
recyclepublic final void recycle()Recycles the parser.
- 
recycleRecycles the parser with a character encoding.- Parameters:
- characterEncoding- the character encoding.
 
- 
disposepublic void dispose()Disposes the parser.- Specified by:
- disposein interface- ValueParser
 
- 
clearpublic void clear()Clear all name/value pairs out of this object.- Specified by:
- clearin interface- ValueParser
 
- 
setCharacterEncodingSet the character encoding that will be used by this ValueParser.- Specified by:
- setCharacterEncodingin interface- ValueParser
- Parameters:
- s- the character encoding to use
 
- 
getCharacterEncodingGet the character encoding that will be used by this ValueParser.- Specified by:
- getCharacterEncodingin interface- ValueParser
- Returns:
- Current character encoding
 
- 
setLocaleSet the locale that will be used by this ValueParser.- Specified by:
- setLocalein interface- ValueParser
- Parameters:
- l- the default locale to be used by the parser
 
- 
getLocaleGet the locale that will be used by this ValueParser.- Specified by:
- getLocalein interface- ValueParser
- Returns:
- Locale the locale being used
 
- 
setDateFormatSet the date format that will be used by this ValueParser.- Specified by:
- setDateFormatin interface- ValueParser
- Parameters:
- df- the date format
 
- 
getDateFormatGet the date format that will be used by this ValueParser.- Specified by:
- getDateFormatin interface- ValueParser
- Returns:
- DateFormat current date format used by this ValueParser
 
- 
setNumberFormatSet the number format that will be used by this ValueParser.- Specified by:
- setNumberFormatin interface- ValueParser
- Parameters:
- nf- the number format to use
 
- 
getNumberFormatGet the number format that will be used by this ValueParser.- Specified by:
- getNumberFormatin interface- ValueParser
- Returns:
- NumberFormat the current number format
 
- 
addAdd a name/value pair into this object.- Specified by:
- addin interface- ValueParser
- Parameters:
- name- A String with the name.
- value- A double with the value.
 
- 
addAdd a name/value pair into this object.- Specified by:
- addin interface- ValueParser
- Parameters:
- name- A String with the name.
- value- An int with the value.
 
- 
addAdd a name/value pair into this object.- Specified by:
- addin interface- ValueParser
- Parameters:
- name- A String with the name.
- value- An Integer with the value.
 
- 
addAdd a name/value pair into this object.- Specified by:
- addin interface- ValueParser
- Parameters:
- name- A String with the name.
- value- A long with the value.
 
- 
addAdd a name/value pair into this object.- Specified by:
- addin interface- ValueParser
- Parameters:
- name- A String with the name.
- value- A long with the value.
 
- 
addAdd an array of Strings for a key. This is simply adding all the elements in the array one by one.- Specified by:
- addin interface- ValueParser
- Parameters:
- name- A String with the name.
- value- A String Array.
 
- 
removeRemoves the named parameter from the contained hashtable. Wraps to the containedMap.remove().- Specified by:
- removein interface- ValueParser
- Parameters:
- name- the name of the mapped value to remove
- Returns:
- The value that was mapped to the key (a String[]) ornullif the key was not mapped.
 
- 
convertTrims the string data and applies the conversion specified in the property given by URL_CASE_FOLDING. It returns a new string so that it does not destroy the value data.- Specified by:
- convertin interface- ValueParser
- Parameters:
- value- A String to be processed.
- Returns:
- A new String converted to lowercase and trimmed.
 
- 
containsKeyDetermine whether a given key has been inserted. All keys are stored in lowercase strings, so override method to account for this.- Specified by:
- containsKeyin interface- ValueParser
- Parameters:
- key- An Object with the key to search for.
- Returns:
- True if the object is found.
 
- 
keySetGets the set of keys- Specified by:
- keySetin interface- ValueParser
- Returns:
- A Setof the keys.
 
- 
getKeysReturns all the available parameter names.- Specified by:
- getKeysin interface- ValueParser
- Returns:
- A object array with the keys.
 
- 
iteratorGets an iterator over the set of keys
- 
getBooleanReturn a boolean for the given name. If the name does not exist, return defaultValue.- Specified by:
- getBooleanin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A boolean.
 
- 
getBooleanReturn a boolean for the given name. If the name does not exist, return false.- Specified by:
- getBooleanin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A boolean.
 
- 
getBooleansReturn an array of booleans for the given name. If the name does not exist, return null.- Specified by:
- getBooleansin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A boolean[].
 
- 
getBooleanObjectReturns a Boolean object for the given name. If the parameter does not exist or can not be parsed as a boolean, null is returned.Valid values for true: true, on, 1, yes 
 Valid values for false: false, off, 0, no
 The string is compared without reguard to case. - Specified by:
- getBooleanObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A Boolean.
 
- 
getBooleanObjectReturns a Boolean object for the given name. If the parameter does not exist or can not be parsed as a boolean, null is returned.Valid values for true: true, on, 1, yes 
 Valid values for false: false, off, 0, no
 The string is compared without reguard to case. - Specified by:
- getBooleanObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A Boolean.
 
- 
getBooleanObjectsReturn an array of Booleans for the given name. If the name does not exist, return null.- Specified by:
- getBooleanObjectsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A Boolean[].
 
- 
getDoubleReturn a double for the given name. If the name does not exist, return defaultValue.- Specified by:
- getDoublein interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A double.
 
- 
getDoubleReturn a double for the given name. If the name does not exist, return 0.0.- Specified by:
- getDoublein interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A double.
 
- 
getDoublesReturn an array of doubles for the given name. If the name does not exist, return null.- Specified by:
- getDoublesin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A double[].
 
- 
getDoubleObjectReturn a Double for the given name. If the name does not exist, return defaultValue.- Specified by:
- getDoubleObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A double.
 
- 
getDoubleObjectReturn a Double for the given name. If the name does not exist, return null.- Specified by:
- getDoubleObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A double.
 
- 
getDoubleObjectsReturn an array of doubles for the given name. If the name does not exist, return null.- Specified by:
- getDoubleObjectsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A double[].
 
- 
getFloatReturn a float for the given name. If the name does not exist, return defaultValue.- Specified by:
- getFloatin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A float.
 
- 
getFloatReturn a float for the given name. If the name does not exist, return 0.0.- Specified by:
- getFloatin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A float.
 
- 
getFloatsReturn an array of floats for the given name. If the name does not exist, return null.- Specified by:
- getFloatsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A float[].
 
- 
getFloatObjectReturn a Float for the given name. If the name does not exist, return defaultValue.- Specified by:
- getFloatObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A Float.
 
- 
getFloatObjectReturn a float for the given name. If the name does not exist, return null.- Specified by:
- getFloatObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A Float.
 
- 
getFloatObjectsReturn an array of floats for the given name. If the name does not exist, return null.- Specified by:
- getFloatObjectsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A float[].
 
- 
getBigDecimalReturn a BigDecimal for the given name. If the name does not exist, return defaultValue.- Specified by:
- getBigDecimalin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A BigDecimal.
 
- 
getBigDecimalReturn a BigDecimal for the given name. If the name does not exist, return null.- Specified by:
- getBigDecimalin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A BigDecimal.
 
- 
getBigDecimalsReturn an array of BigDecimals for the given name. If the name does not exist, return null.- Specified by:
- getBigDecimalsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A BigDecimal[].
 
- 
getIntReturn an int for the given name. If the name does not exist, return defaultValue.- Specified by:
- getIntin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- An int.
 
- 
getIntReturn an int for the given name. If the name does not exist, return 0.- Specified by:
- getIntin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- An int.
 
- 
getIntsReturn an array of ints for the given name. If the name does not exist, return null.- Specified by:
- getIntsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- An int[].
 
- 
getIntObjectReturn an Integer for the given name. If the name does not exist, return defaultValue.- Specified by:
- getIntObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- An Integer.
 
- 
getIntObjectReturn an Integer for the given name. If the name does not exist, return null.- Specified by:
- getIntObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- An Integer.
 
- 
getIntObjectsReturn an array of Integers for the given name. If the name does not exist, return null.- Specified by:
- getIntObjectsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- An Integer[].
 
- 
getLongReturn a long for the given name. If the name does not exist, return defaultValue.- Specified by:
- getLongin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A long.
 
- 
getLongReturn a long for the given name. If the name does not exist, return 0.- Specified by:
- getLongin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A long.
 
- 
getLongsReturn an array of longs for the given name. If the name does not exist, return null.- Specified by:
- getLongsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A long[].
 
- 
getLongObjectsReturn an array of Longs for the given name. If the name does not exist, return null.- Specified by:
- getLongObjectsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A Long[].
 
- 
getLongObjectReturn a Long for the given name. If the name does not exist, return null.- Specified by:
- getLongObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A Long.
 
- 
getLongObjectReturn a Long for the given name. If the name does not exist, return the default value.- Specified by:
- getLongObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A Long.
 
- 
getByteReturn a byte for the given name. If the name does not exist, return defaultValue.- Specified by:
- getBytein interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A byte.
 
- 
getByteReturn a byte for the given name. If the name does not exist, return 0.- Specified by:
- getBytein interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A byte.
 
- 
getBytesReturn an array of bytes for the given name. If the name does not exist, return null. The array is returned according to the HttpRequest's character encoding.- Specified by:
- getBytesin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A byte[].
- Throws:
- UnsupportedEncodingException- Generic exception
 
- 
getByteObjectReturn a byte for the given name. If the name does not exist, return defaultValue.- Specified by:
- getByteObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A byte.
 
- 
getByteObjectReturn a byte for the given name. If the name does not exist, return 0.- Specified by:
- getByteObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A byte.
 
- 
getStringReturn a String for the given name. If the name does not exist, return null.- Specified by:
- getStringin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A String or null if the key is unknown.
 
- 
getReturn a String for the given name. If the name does not exist, return null. It is the same as the getString() method however has been added for simplicity when working with template tools such as Velocity which allow you to do something like this:$data.Parameters.form_variable_name- Specified by:
- getin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A String.
 
- 
getStringReturn a String for the given name. If the name does not exist, return the defaultValue.- Specified by:
- getStringin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A String.
 
- 
setStringSet a parameter to a specific value. This is useful if you want your action to override the values of the parameters for the screen to use.- Specified by:
- setStringin interface- ValueParser
- Parameters:
- name- The name of the parameter.
- value- The value to set.
 
- 
getStringsReturn an array of Strings for the given name. If the name does not exist, return null.- Specified by:
- getStringsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A String[].
 
- 
getStringsReturn an array of Strings for the given name. If the name does not exist, return the defaultValue.- Specified by:
- getStringsin interface- ValueParser
- Parameters:
- name- A String with the name.
- defaultValue- The default value.
- Returns:
- A String[].
 
- 
setStringsSet a parameter to a specific value. This is useful if you want your action to override the values of the parameters for the screen to use.- Specified by:
- setStringsin interface- ValueParser
- Parameters:
- name- The name of the parameter.
- values- The value to set.
 
- 
getObjectReturn an Object for the given name. If the name does not exist, return null.- Specified by:
- getObjectin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- An Object.
 
- 
getObjectsReturn an array of Objects for the given name. If the name does not exist, return null.- Specified by:
- getObjectsin interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- An Object[].
 
- 
getDateReturns aDateobject. String is parsed by supplied DateFormat. If the name does not exist or the value could not be parsed into a date return the defaultValue.- Specified by:
- getDatein interface- ValueParser
- Parameters:
- name- A String with the name.
- df- A DateFormat.
- defaultValue- The default value.
- Returns:
- A Date.
 
- 
getDateReturns aDateobject. If there are DateSelector or TimeSelector style parameters then these are used. If not and there is a parameter 'name' then this is parsed by DateFormat. If the name does not exist, return null.- Specified by:
- getDatein interface- ValueParser
- Parameters:
- name- A String with the name.
- Returns:
- A Date.
 
- 
getDateReturns aDateobject. String is parsed by supplied DateFormat. If the name does not exist, return null.- Specified by:
- getDatein interface- ValueParser
- Parameters:
- name- A String with the name.
- df- A DateFormat.
- Returns:
- A Date.
 
- 
setPropertiesUses bean introspection to set writable properties of bean from the parameters, where a (case-insensitive) name match between the bean property and the parameter is looked for.- Specified by:
- setPropertiesin interface- ValueParser
- Parameters:
- bean- An Object.
- Throws:
- Exception- a generic exception.
 
- 
toStringSimple method that attempts to get a textual representation of this object's name/value pairs. String[] handling is currently a bit rough.- Specified by:
- toStringin interface- ValueParser
- Overrides:
- toStringin class- Object
- Returns:
- A textual representation of the parsed name/value pairs.
 
- 
getToStringParamThis method is only used in toString() and can be used by derived classes to add their local parameters to the toString()- Parameters:
- name- A string with the name
- Returns:
- the value object array or null if not set
 
- 
setPropertySet the property 'prop' in the bean to the value of the corresponding parameters. Supports all types supported by getXXX methods plus a few more that come for free because primitives have to be wrapped before being passed to invoke anyway.- Parameters:
- bean- An Object.
- prop- A PropertyDescriptor. @throws Exception a generic exception.
- Throws:
- Exception
 
- 
putParamPuts a key into the parameters map. Makes sure that the name is always mapped correctly. This method also enforces the usage of arrays for the parameters.- Parameters:
- name- A String with the name.
- value- An array of Objects with the values.
 
- 
getParamfetches a key from the parameters map. Makes sure that the name is always mapped correctly.- Parameters:
- name- A string with the name
- Returns:
- the value object array or null if not set
 
- 
isDisposedpublic boolean isDisposed()Checks whether the object is disposed.- Returns:
- true, if the object is disposed.
 
- 
convertAndTrimConvert a String value according to the url-case-folding property.- Specified by:
- convertAndTrimin interface- ValueParser
- Parameters:
- value- the String to convert
- Returns:
- a new String.
 
- 
convertAndTrimA convert method, which trims the string data and applies the conversion specified in the parameter given. It returns a new string so that it does not destroy the value data.- Specified by:
- convertAndTrimin interface- ValueParser
- Parameters:
- value- A String to be processed.
- fold- The parameter folding to be applied (see- ParserService)
- Returns:
- A new String converted to the correct case and trimmed.
 
- 
getUrlFoldingGets the folding value from the ParserService configuration- Specified by:
- getUrlFoldingin interface- ValueParser
- Returns:
- The current Folding Value
 
- 
isValidpublic boolean isValid()
 
-