public class HttpPostRequest extends AbstractHttpRequest
Modifier and Type | Field and Description |
---|---|
protected String |
method |
auth, DEFAULT_ENCODING, lastHttpStatusCode, lastResponseStream, url, USER_AGENT
Constructor and Description |
---|
HttpPostRequest(String url)
Constructor
|
HttpPostRequest(String url,
Authentication auth)
Constructor
|
HttpPostRequest(String url,
Map<String,Serializable> fields)
Constructor
|
HttpPostRequest(String url,
Map<String,Serializable> fields,
Authentication auth)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected HttpURLConnection |
getConnection()
Helper method to make an HTTP POST request.
|
execute, getProxiedConnection, getResponseAsFile, getResponseBody, getResponseCode
protected String method
public HttpPostRequest(String url) throws HelloSignException
url
- StringHelloSignException
- thrown if there is a problem making the HTTP
request or processing the responsepublic HttpPostRequest(String url, Authentication auth) throws HelloSignException
url
- Stringauth
- AuthenticationHelloSignException
- thrown if there is a problem making the HTTP
request or processing the responsepublic HttpPostRequest(String url, Map<String,Serializable> fields) throws HelloSignException
url
- Stringfields
- MapHelloSignException
- thrown if there is a problem making the HTTP
request or processing the responsepublic HttpPostRequest(String url, Map<String,Serializable> fields, Authentication auth) throws HelloSignException
url
- Stringfields
- Mapauth
- AuthenticationHelloSignException
- thrown if there is a problem making the HTTP
request or processing the responseprotected HttpURLConnection getConnection() throws HelloSignException
getConnection
in class AbstractHttpRequest
HelloSignException
- thrown if there is a problem making the HTTP
request or processing the resultCopyright © 2017 HelloSign. All rights reserved.