map
Constructor and Description |
---|
Form()
Constructs a new, empty form object.
|
Modifier and Type | Method and Description |
---|---|
void |
appendRequestQuery(Request request)
Appends the form as additional query parameters on an existing request
URI.
|
Form |
fromFormString(String s)
Parses a form URL-encoded string containing form parameters and stores them in
this object.
|
Form |
fromQueryString(String s)
Parses a URL-encoded query string containing form parameters and stores them in
this object.
|
Form |
fromRequestEntity(Request request)
Parses the URL-encoded form entity of a request and stores them in this
object.
|
Form |
fromRequestQuery(Request request)
Parses the query parameters of a request and stores them in this object.
|
Form |
fromString(String s)
Deprecated.
use
fromFormString(String) instead. |
String |
toFormString()
Returns this form in a form URL-encoded string.
|
String |
toQueryString()
Returns this form in a URL-encoded query string.
|
void |
toRequestEntity(Request request)
Populates a request with the necessary headers and entity for the form to
be submitted as a POST with application/x-www-form-urlencoded content
type.
|
void |
toRequestQuery(Request request)
Sets a request URI with query parameters.
|
String |
toString()
Deprecated.
use
toFormString() instead. |
add, addAll, addAll, addAll, getFirst, putSingle
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
public Form()
@Deprecated public Form fromString(String s)
fromFormString(String)
instead.s
- the form URL-encoded string to parse.public Form fromFormString(String s)
s
- the form URL-encoded string to parse.public Form fromQueryString(String s)
s
- the URL-encoded query string to parse.@Deprecated public String toString()
toFormString()
instead.public String toFormString()
public String toQueryString()
public Form fromRequestQuery(Request request)
request
- the request to be parsed.public void toRequestQuery(Request request)
request
- the request to set query parameters to.public void appendRequestQuery(Request request)
request
- the request to append query parameters to.public Form fromRequestEntity(Request request) throws IOException
request
- the request to be parsed.IOException
- if an I/O exception occurs.public void toRequestEntity(Request request)
request
- the request to add the form entity to.Copyright 2011-2015 ForgeRock AS.