| java.lang.Object org.sakaiproject.util.ParameterParser
ParameterParser | public class ParameterParser (Code) | | ParameterParser is a wrapper over the request that provides compatibility with Sakai 1.5 and before.
|
Method Summary | |
public String | get(String name) Get a (String) parameter by name.
Parameters: name - The parameter name. | public boolean | getBoolean(String name) Get a boolean parameter by name.
Parameters: name - The parameter name. | public String | getCleanString(String name) Clean the user input string of strange newlines, etc.
Parameters: value - The user input string. | public FileItem | getFileItem(String name) Get a FileItem parameter by name.
Parameters: name - The parameter name. | public int | getInt(String name, int deflt) Get an int parameter by name, with default.
Parameters: name - The parameter name. Parameters: deflt - The default value. | public int | getInt(String name) Get an int parameter by name.
Parameters: name - The parameter name. | public Iterator | getNames() Access the parameter names. | public String | getPath() Access the pathInfo. | public String | getString(String name) Get a (String) parameter by name.
Parameters: name - The parameter name. | public String[] | getStrings(String name) Get a (String[]) multi-valued parameter by name.
Parameters: name - The parameter name. |
ParameterParser | public ParameterParser(HttpServletRequest req)(Code) | | Construct with this request.
Parameters: req - The current request. |
get | public String get(String name)(Code) | | Get a (String) parameter by name.
Parameters: name - The parameter name. The parameter value, or null if it's not defined. |
getBoolean | public boolean getBoolean(String name)(Code) | | Get a boolean parameter by name.
Parameters: name - The parameter name. The parameter boolean value, or false if it's not defined. |
getCleanString | public String getCleanString(String name)(Code) | | Clean the user input string of strange newlines, etc.
Parameters: value - The user input string. value cleaned of string newlines, etc. |
getFileItem | public FileItem getFileItem(String name)(Code) | | Get a FileItem parameter by name.
Parameters: name - The parameter name. The parameter FileItem value, or null if it's not defined. |
getInt | public int getInt(String name, int deflt)(Code) | | Get an int parameter by name, with default.
Parameters: name - The parameter name. Parameters: deflt - The default value. The parameter int value, or the default if it's not defined or not int. |
getInt | public int getInt(String name)(Code) | | Get an int parameter by name.
Parameters: name - The parameter name. The parameter int value, or 0 if it's not defined or not int. |
getNames | public Iterator getNames()(Code) | | Access the parameter names.
An Iterator of parameter names (String). |
getPath | public String getPath()(Code) | | Access the pathInfo.
The pathInfo. |
getString | public String getString(String name)(Code) | | Get a (String) parameter by name.
Parameters: name - The parameter name. The parameter value, or null if it's not defined. |
getStrings | public String[] getStrings(String name)(Code) | | Get a (String[]) multi-valued parameter by name.
Parameters: name - The parameter name. The parameter values array (of String), or null if it's not defined. |
|
|