|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.noelios.restlet.util.FormReader
public class FormReader
Form reader.
| Constructor Summary | |
|---|---|
FormReader(Logger logger,
Representation representation)
Constructor. In case the representation does not define a character set, the UTF-8 character set is used. |
|
FormReader(Logger logger,
String query,
CharacterSet characterSet)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addParameters(Form form)
Adds the parameters into a given form. |
Form |
read()
Reads all the parameters. |
Parameter |
readFirstParameter(String name)
Reads the first parameter with the given name. |
Parameter |
readNextParameter()
Reads the next parameter available or null. |
Object |
readParameter(String name)
Reads the parameters with the given name. |
void |
readParameters(Map<String,Object> parameters)
Reads the parameters whose name is a key in the given map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormReader(Logger logger,
Representation representation)
throws IOException
logger - The logger.representation - The web form content.
IOException
public FormReader(Logger logger,
String query,
CharacterSet characterSet)
throws IOException
logger - The logger.query - The query string.characterSet - The supported character encoding.
IOException| Method Detail |
|---|
public Object readParameter(String name)
throws IOException
name - The parameter name to match.
IOException
public Parameter readFirstParameter(String name)
throws IOException
name - The parameter name to match.
IOException
public void readParameters(Map<String,Object> parameters)
throws IOException
parameters - The parameters map controlling the reading.
IOException
public Parameter readNextParameter()
throws IOException
IOException
public Form read()
throws IOException
IOExceptionpublic void addParameters(Form form)
form - The target form.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||