public class HttpGetRequest extends AbstractHttpRequest
auth, DEFAULT_ENCODING, url, USER_AGENT| Constructor and Description |
|---|
HttpGetRequest(String url) |
HttpGetRequest(String url,
Authentication auth) |
HttpGetRequest(String url,
Map<String,String> parameters) |
HttpGetRequest(String url,
Map<String,String> parameters,
Authentication auth) |
| 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, validatepublic HttpGetRequest(String url) throws HelloSignException
HelloSignExceptionpublic HttpGetRequest(String url, Authentication auth) throws HelloSignException
HelloSignExceptionpublic HttpGetRequest(String url, Map<String,String> parameters) throws HelloSignException
HelloSignExceptionpublic HttpGetRequest(String url, Map<String,String> parameters, Authentication auth) throws HelloSignException
HelloSignExceptionpublic org.json.JSONObject getJsonResponse()
throws HelloSignException
HelloSignExceptionpublic File getFileResponse(String filename) throws HelloSignException
filename - HelloSignExceptionCopyright © 2015 HelloSign. All rights reserved.