| java.lang.Object com.noelios.restlet.util.FormReader
FormReader | public class FormReader (Code) | | Form reader.
author: Jerome Louvel (contact@noelios.com) |
FormReader | public FormReader(Logger logger, Representation representation) throws IOException(Code) | | Constructor. In case the representation does not define a character
set, the UTF-8 character set is used.
Parameters: logger - The logger. Parameters: representation - The web form content. |
FormReader | public FormReader(Logger logger, String query, CharacterSet characterSet) throws IOException(Code) | | Constructor.
Parameters: logger - The logger. Parameters: query - The query string. Parameters: characterSet - The supported character encoding. |
addParameters | public void addParameters(Form form)(Code) | | Adds the parameters into a given form.
Parameters: form - The target form. |
readFirstParameter | public Parameter readFirstParameter(String name) throws IOException(Code) | | Reads the first parameter with the given name.
Parameters: name - The parameter name to match. The parameter value. throws: IOException - |
readNextParameter | public Parameter readNextParameter() throws IOException(Code) | | Reads the next parameter available or null.
The next parameter available or null. |
readParameter | public Object readParameter(String name) throws IOException(Code) | | Reads the parameters with the given name. If multiple values are found, a
list is returned created.
Parameters: name - The parameter name to match. The parameter value or list of values. |
readParameters | public void readParameters(Map<String, Object> parameters) throws IOException(Code) | | Reads the parameters whose name is a key in the given map. If a matching
parameter is found, its value is put in the map. If multiple values are
found, a list is created and set in the map.
Parameters: parameters - The parameters map controlling the reading. |
|
|