EMPTY_VALUE
Constructor and Description |
---|
Form()
Empty constructor.
|
Form(int initialCapacity)
Constructor.
|
Form(java.util.List<Parameter> delegate)
Constructor.
|
Form(Representation webForm)
Constructor.
|
Form(Representation webForm,
boolean decode)
Constructor.
|
Form(java.lang.String queryString)
Constructor.
|
Form(java.lang.String queryString,
boolean decode)
Constructor.
|
Form(java.lang.String parametersString,
char separator)
Constructor.
|
Form(java.lang.String queryString,
CharacterSet characterSet)
Constructor.
|
Form(java.lang.String queryString,
CharacterSet characterSet,
boolean decode)
Constructor.
|
Form(java.lang.String parametersString,
CharacterSet characterSet,
char separator)
Constructor.
|
Form(java.lang.String parametersString,
CharacterSet characterSet,
char separator,
boolean decode)
Constructor.
|
Form(java.lang.String parametersString,
char separator,
boolean decode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Parameter |
createEntry(java.lang.String name,
java.lang.String value)
Creates a new entry.
|
Series<Parameter> |
createSeries(java.util.List<Parameter> delegate)
Creates a new series.
|
java.lang.String |
encode()
Encodes the form using the standard URI encoding mechanism and the UTF-8
character set.
|
java.lang.String |
encode(CharacterSet characterSet)
URL encodes the form.
|
java.lang.String |
encode(CharacterSet characterSet,
char separator)
URL encodes the form.
|
java.lang.String |
getMatrixString()
Formats the form as a matrix path string.
|
java.lang.String |
getMatrixString(CharacterSet characterSet)
Formats the form as a query string.
|
java.lang.String |
getQueryString()
Formats the form as a query string.
|
java.lang.String |
getQueryString(CharacterSet characterSet)
Formats the form as a query string.
|
Representation |
getWebRepresentation()
Returns the form as a Web representation
(MediaType.APPLICATION_WWW_FORM).
|
Representation |
getWebRepresentation(CharacterSet characterSet)
Returns the form as a Web representation
(MediaType.APPLICATION_WWW_FORM).
|
add, copyTo, getFirst, getFirst, getFirstValue, getFirstValue, getFirstValue, getFirstValue, getNames, getValues, getValues, getValuesArray, getValuesArray, getValuesArray, getValuesArray, getValuesMap, removeAll, removeAll, removeFirst, removeFirst, set, set, subList, subList, subList
add, add, addAll, addAll, clear, contains, containsAll, equals, get, getDelegate, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray, toString
public Form()
public Form(int initialCapacity)
initialCapacity
- The initial list capacity.public Form(java.util.List<Parameter> delegate)
delegate
- The delegate list.public Form(Representation webForm)
webForm
- The URL encoded Web form.java.io.IOException
public Form(Representation webForm, boolean decode)
webForm
- The URL encoded Web form.java.io.IOException
public Form(java.lang.String queryString)
queryString
- The Web form parameters as a string.java.io.IOException
public Form(java.lang.String queryString, boolean decode)
queryString
- The Web form parameters as a string.decode
- Indicates if the names and values should be automatically
decoded.java.io.IOException
public Form(java.lang.String parametersString, char separator)
parametersString
- The parameters string to parse.separator
- The separator character to append between parameters.java.io.IOException
public Form(java.lang.String parametersString, char separator, boolean decode)
parametersString
- The parameters string to parse.separator
- The separator character to append between parameters.decode
- Indicates if the names and values should be automatically
decoded.java.io.IOException
public Form(java.lang.String queryString, CharacterSet characterSet)
queryString
- The Web form parameters as a string.characterSet
- The supported character encoding.java.io.IOException
public Form(java.lang.String queryString, CharacterSet characterSet, boolean decode)
queryString
- The Web form parameters as a string.characterSet
- The supported character encoding.decode
- Indicates if the names and values should be automatically
decoded.java.io.IOException
public Form(java.lang.String parametersString, CharacterSet characterSet, char separator)
parametersString
- The parameters string to parse.characterSet
- The supported character encoding.separator
- The separator character to append between parameters.java.io.IOException
public Form(java.lang.String parametersString, CharacterSet characterSet, char separator, boolean decode)
parametersString
- The parameters string to parse.characterSet
- The supported character encoding.separator
- The separator character to append between parameters.decode
- Indicates if the names and values should be automatically
decoded.java.io.IOException
public Parameter createEntry(java.lang.String name, java.lang.String value)
Series
createEntry
in class Series<Parameter>
name
- The name of the entry.value
- The value of the entry.public Series<Parameter> createSeries(java.util.List<Parameter> delegate)
Series
createSeries
in class Series<Parameter>
delegate
- Optional delegate series.public java.lang.String encode() throws java.io.IOException
java.io.IOException
public java.lang.String encode(CharacterSet characterSet) throws java.io.IOException
characterSet
- The supported character encoding.java.io.IOException
public java.lang.String encode(CharacterSet characterSet, char separator) throws java.io.IOException
characterSet
- The supported character encoding.separator
- The separator character to append between parameters.java.io.IOException
public java.lang.String getMatrixString()
public java.lang.String getMatrixString(CharacterSet characterSet)
characterSet
- The supported character encoding.public java.lang.String getQueryString()
public java.lang.String getQueryString(CharacterSet characterSet)
characterSet
- The supported character encoding.public Representation getWebRepresentation()
public Representation getWebRepresentation(CharacterSet characterSet)
characterSet
- The supported character encoding.Copyright © 2005-2024 Restlet.