public class HttpGetRequest extends AbstractHttpRequest
auth, DEFAULT_ENCODING, url, USER_AGENT| Constructor and Description |
|---|
HttpGetRequest(String url)
Constructor
|
HttpGetRequest(String url,
Authentication auth)
Constructor
|
HttpGetRequest(String url,
Map<String,String> parameters)
Constructor
|
HttpGetRequest(String url,
Map<String,String> parameters,
Authentication auth)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
File |
getFileResponse(String filename)
Execute the GET request and process the response as a file.
|
org.json.JSONObject |
getJsonResponse()
Executes the GET request and converts the response to a JSON
object.
|
convertStreamToString, getConnection, validatepublic HttpGetRequest(String url) throws HelloSignException
url - StringHelloSignException - thrown if there is a problem making
the HTTP request or processing the responsepublic HttpGetRequest(String url, Authentication auth) throws HelloSignException
url - Stringauth - AuthenticationHelloSignException - thrown if there is a problem making
the HTTP request or processing the responsepublic HttpGetRequest(String url, Map<String,String> parameters) throws HelloSignException
url - Stringparameters - MapHelloSignException - thrown if there is a problem making
the HTTP request or processing the responsepublic HttpGetRequest(String url, Map<String,String> parameters, Authentication auth) throws HelloSignException
url - Stringparameters - Mapauth - AuthenticationHelloSignException - thrown if there is a problem making
the HTTP request or processing the responsepublic org.json.JSONObject getJsonResponse()
throws HelloSignException
HelloSignException - thrown if there is a problem making
the HTTP request.public File getFileResponse(String filename) throws HelloSignException
filename - StringHelloSignException - thrown if there is a problem creating the fileCopyright © 2016 HelloSign. All rights reserved.