public class URLEncodedContent extends Object implements IRequestContent
Modifier and Type | Field and Description |
---|---|
static String |
X_WWW_FORM_URLENCODED
The String: "application/x-www-form-urlencoded" for "Content-Type".
|
ACCEPT, ACCEPT_CHARSET, ACCEPT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, X_HTTP_METHOD_OVERRIDE
Constructor and Description |
---|
URLEncodedContent(URLEncodedInput inputProp)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onPostProcessRequest(RESTfulRequest request,
boolean doPerform)
Pre-processes the request as required, typically to modify the URLConnection.
|
void |
onPreProcessRequest(RESTfulRequest request,
boolean doPerform)
Pre-processes the request as required, i.e.
|
public static final String X_WWW_FORM_URLENCODED
public URLEncodedContent(URLEncodedInput inputProp)
inputProp
- The URL encoded input.public void onPreProcessRequest(RESTfulRequest request, boolean doPerform) throws PropException, UnsupportedEncodingException, URISyntaxException, UnsupportedEncodingException
This call is done prior to establishing the URLConnection.
onPreProcessRequest
in interface IRequestContent
request
- The request.doPerform
- Flag to perform the transaction or false to test validity.PropException
- For property errors.UnsupportedEncodingException
- For encoding errors.URISyntaxException
- For URI syntax errors for parameters.UnsupportedEncodingException
- For unsupported encodings.public void onPostProcessRequest(RESTfulRequest request, boolean doPerform) throws PropException, IOException, UnsupportedEncodingException
onPostProcessRequest
in interface IRequestContent
request
- The request.doPerform
- Flag to perform the transaction or false to test validity.PropException
- For property errors.IOException
- For I/O errors.UnsupportedEncodingException
- For unsupported encodings.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.