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, validate
public HttpGetRequest(String url) throws HelloSignException
HelloSignException
public HttpGetRequest(String url, Authentication auth) throws HelloSignException
HelloSignException
public HttpGetRequest(String url, Map<String,String> parameters) throws HelloSignException
HelloSignException
public HttpGetRequest(String url, Map<String,String> parameters, Authentication auth) throws HelloSignException
HelloSignException
public org.json.JSONObject getJsonResponse() throws HelloSignException
HelloSignException
public File getFileResponse(String filename) throws HelloSignException
filename
- HelloSignException
Copyright © 2015 HelloSign. All rights reserved.