public class HttpPostRequest extends AbstractHttpRequest
auth, DEFAULT_ENCODING, url, USER_AGENT| Constructor and Description |
|---|
HttpPostRequest(String url) |
HttpPostRequest(String url,
Authentication auth) |
HttpPostRequest(String url,
Map<String,Serializable> fields) |
HttpPostRequest(String url,
Map<String,Serializable> fields,
Authentication auth) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpResponseCode()
Performs a field-less POST request to the provided URL using basic auth and
returns the HTTP code.
|
org.json.JSONObject |
getJsonResponse()
Performs a POST request to the given URL, using the authentication
details and POST fields provided.
|
convertStreamToString, validatepublic HttpPostRequest(String url) throws HelloSignException
HelloSignExceptionpublic HttpPostRequest(String url, Authentication auth) throws HelloSignException
HelloSignExceptionpublic HttpPostRequest(String url, Map<String,Serializable> fields) throws HelloSignException
HelloSignExceptionpublic HttpPostRequest(String url, Map<String,Serializable> fields, Authentication auth) throws HelloSignException
HelloSignExceptionpublic org.json.JSONObject getJsonResponse()
throws HelloSignException
HelloSignExceptionpublic int getHttpResponseCode()
throws HelloSignException
HelloSignExceptionCopyright © 2015 HelloSign. All rights reserved.