| org.restlet.data.Form
Form | public class Form extends Series (Code) | | Form which is a specialized modifiable list of parameters.
author: Jerome Louvel (contact@noelios.com) |
Form | public Form()(Code) | | Empty constructor.
|
Form | public Form(int initialCapacity)(Code) | | Constructor.
Parameters: initialCapacity - The initial list capacity. |
Form | public Form(List<Parameter> delegate)(Code) | | Constructor.
Parameters: delegate - The delegate list. |
Form | public Form(Logger logger, Representation representation)(Code) | | Constructor.
Parameters: logger - The logger to use. Parameters: representation - The representation to parse (URL encoded Web form supported). throws: IOException - |
Form | public Form(Logger logger, String queryString, CharacterSet characterSet)(Code) | | Constructor.
Parameters: logger - The logger to use. Parameters: queryString - The Web form parameters as a string. Parameters: characterSet - The supported character encoding. throws: IOException - |
Form | public Form(String queryString)(Code) | | Constructor. Uses UTF-8 as the character set for encoding non-ASCII
characters.
Parameters: queryString - The Web form parameters as a string. throws: IOException - |
Form | public Form(String queryString, CharacterSet characterSet)(Code) | | Constructor.
Parameters: queryString - The Web form parameters as a string. Parameters: characterSet - The supported character encoding. throws: IOException - |
encode | public String encode() throws IOException(Code) | | Encodes the form using the standard URI encoding mechanism and the UTF-8
character set.
The encoded form. throws: IOException - |
getQueryString | public String getQueryString()(Code) | | Formats the form as a query string. Uses UTF-8 as the character set for
encoding non-ASCII characters.
The form as a query string. |
getQueryString | public String getQueryString(CharacterSet characterSet)(Code) | | Formats the form as a query string.
Parameters: characterSet - The supported character encoding. The form as a query string. |
getWebRepresentation | public Representation getWebRepresentation()(Code) | | Returns the form as a Web representation
(MediaType.APPLICATION_WWW_FORM). Uses UTF-8 as the character set for
encoding non-ASCII characters.
The form as a Web representation. |
getWebRepresentation | public Representation getWebRepresentation(CharacterSet characterSet)(Code) | | Returns the form as a Web representation
(MediaType.APPLICATION_WWW_FORM).
Parameters: characterSet - The supported character encoding. The form as a Web representation. |
|
|