public abstract class AbstractHttpRequest extends Object
Modifier and Type | Field and Description |
---|---|
protected Authentication |
auth |
static String |
DEFAULT_ENCODING |
protected String |
url |
static String |
USER_AGENT |
Constructor and Description |
---|
AbstractHttpRequest() |
Modifier and Type | Method and Description |
---|---|
static String |
convertStreamToString(InputStream in) |
protected static HttpURLConnection |
getConnection(String url)
Creates an HTTP connection.
|
protected static void |
validate(org.json.JSONObject json,
int code) |
public static final String DEFAULT_ENCODING
public static final String USER_AGENT
protected String url
protected Authentication auth
public static String convertStreamToString(InputStream in)
protected static void validate(org.json.JSONObject json, int code) throws HelloSignException
HelloSignException
protected static HttpURLConnection getConnection(String url) throws MalformedURLException, IOException
url
- String URL to connect toMalformedURLException
- thrown if the URL is invalidIOException
- thrown if IO cannot be established with the URLCopyright © 2016 HelloSign. All rights reserved.