|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.util.FormReader
public class FormReader
Form reader.
Constructor Summary | |
---|---|
FormReader(Representation representation)
Constructor. |
|
FormReader(Representation representation,
boolean decode)
Constructor. |
|
FormReader(java.lang.String parametersString,
char separator)
Constructor. |
|
FormReader(java.lang.String parametersString,
CharacterSet characterSet,
char separator)
Constructor. |
|
FormReader(java.lang.String parametersString,
CharacterSet characterSet,
char separator,
boolean decode)
Constructor. |
Method Summary | |
---|---|
void |
addParameters(Series<Parameter> parameters)
Adds the parameters into a given series. |
Form |
read()
Reads all the parameters. |
Parameter |
readFirstParameter(java.lang.String name)
Reads the first parameter with the given name. |
Parameter |
readNextParameter()
Reads the next parameter available or null. |
java.lang.Object |
readParameter(java.lang.String name)
Reads the parameters with the given name. |
void |
readParameters(java.util.Map<java.lang.String,java.lang.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(Representation representation) throws java.io.IOException
representation
- The web form content.
java.io.IOException
- if the stream of the representation could not be opened.public FormReader(Representation representation, boolean decode) throws java.io.IOException
representation
- The web form content.decode
- Indicates if the parameters should be decoded using the given
character set.
java.io.IOException
- if the stream of the representation could not be opened.public FormReader(java.lang.String parametersString, char separator)
parametersString
- The parameters string.separator
- The separator character used between parameters.public FormReader(java.lang.String parametersString, CharacterSet characterSet, char separator)
parametersString
- The parameters string.characterSet
- The supported character encoding. Set to null to leave the
data encoded.separator
- The separator character used between parameters.public FormReader(java.lang.String parametersString, CharacterSet characterSet, char separator, boolean decode)
parametersString
- The parameters string.characterSet
- The supported character encoding. Set to null to leave the
data encoded.separator
- The separator character used between parameters.decode
- Indicates if the parameters should be decoded using the given
character set.Method Detail |
---|
public void addParameters(Series<Parameter> parameters)
parameters
- The target parameter series.public Form read() throws java.io.IOException
java.io.IOException
- If the parameters could not be read.public Parameter readFirstParameter(java.lang.String name) throws java.io.IOException
name
- The parameter name to match.
java.io.IOException
public Parameter readNextParameter() throws java.io.IOException
java.io.IOException
- If the next parameter could not be read.public java.lang.Object readParameter(java.lang.String name) throws java.io.IOException
name
- The parameter name to match.
java.io.IOException
- If the parameters could not be read.public void readParameters(java.util.Map<java.lang.String,java.lang.Object> parameters) throws java.io.IOException
parameters
- The parameters map controlling the reading.
java.io.IOException
- If the parameters could not be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |