Package com.hellosign.sdk.http
Class HttpGetRequest
- java.lang.Object
-
- com.hellosign.sdk.http.AbstractHttpRequest
-
- com.hellosign.sdk.http.HttpGetRequest
-
public class HttpGetRequest extends AbstractHttpRequest
-
-
Field Summary
-
Fields inherited from class com.hellosign.sdk.http.AbstractHttpRequest
auth, DEFAULT_ENCODING, lastHttpStatusCode, lastResponseStream, url, USER_AGENT
-
-
Constructor Summary
Constructors Constructor Description HttpGetRequest(java.lang.String url)
ConstructorHttpGetRequest(java.lang.String url, Authentication auth)
ConstructorHttpGetRequest(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> parameters)
ConstructorHttpGetRequest(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> parameters, Authentication auth)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.net.HttpURLConnection
getConnection()
The method class will create the appropriate connection with an endpoint, parameters, etc.-
Methods inherited from class com.hellosign.sdk.http.AbstractHttpRequest
execute, getProxiedConnection, getResponseAsFile, getResponseBody, getResponseCode
-
-
-
-
Constructor Detail
-
HttpGetRequest
public HttpGetRequest(java.lang.String url) throws HelloSignException
Constructor- Parameters:
url
- String- Throws:
HelloSignException
- thrown if there is a problem making the HTTP request or processing the response
-
HttpGetRequest
public HttpGetRequest(java.lang.String url, Authentication auth) throws HelloSignException
Constructor- Parameters:
url
- Stringauth
- Authentication- Throws:
HelloSignException
- thrown if there is a problem making the HTTP request or processing the response
-
HttpGetRequest
public HttpGetRequest(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> parameters) throws HelloSignException
Constructor- Parameters:
url
- Stringparameters
- Map- Throws:
HelloSignException
- thrown if there is a problem making the HTTP request or processing the response
-
HttpGetRequest
public HttpGetRequest(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> parameters, Authentication auth) throws HelloSignException
Constructor- Parameters:
url
- Stringparameters
- Mapauth
- Authentication- Throws:
HelloSignException
- thrown the URL is empty
-
-
Method Detail
-
getConnection
protected java.net.HttpURLConnection getConnection() throws HelloSignException
Description copied from class:AbstractHttpRequest
The method class will create the appropriate connection with an endpoint, parameters, etc.- Specified by:
getConnection
in classAbstractHttpRequest
- Returns:
- HttpURLConnection used to make the HTTP request
- Throws:
HelloSignException
- Thrown if a connection cannot be created- See Also:
AbstractHttpRequest.getConnection()
-
-