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, validate
public HttpPostRequest(String url) throws HelloSignException
HelloSignException
public HttpPostRequest(String url, Authentication auth) throws HelloSignException
HelloSignException
public HttpPostRequest(String url, Map<String,Serializable> fields) throws HelloSignException
HelloSignException
public HttpPostRequest(String url, Map<String,Serializable> fields, Authentication auth) throws HelloSignException
HelloSignException
public org.json.JSONObject getJsonResponse() throws HelloSignException
HelloSignException
public int getHttpResponseCode() throws HelloSignException
HelloSignException
Copyright © 2015 HelloSign. All rights reserved.