public class HttpGetRequest extends AbstractHttpRequest
auth, DEFAULT_ENCODING, lastHttpStatusCode, lastResponseStream, 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 |
|---|---|
protected HttpURLConnection |
getConnection()
The method class will create the appropriate connection with an endpoint,
parameters, etc.
|
execute, getProxiedConnection, getResponseAsFile, getResponseBody, getResponseCodepublic 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 the URL is emptyprotected HttpURLConnection getConnection() throws HelloSignException
AbstractHttpRequestgetConnection in class AbstractHttpRequestHelloSignException - Thrown if a connection cannot be createdAbstractHttpRequest.getConnection()Copyright © 2019 HelloSign. All rights reserved.