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.HttpURLConnectiongetConnection()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 HelloSignExceptionConstructor- 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 HelloSignExceptionConstructor- 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 HelloSignExceptionConstructor- 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 HelloSignExceptionConstructor- Parameters:
url- Stringparameters- Mapauth- Authentication- Throws:
HelloSignException- thrown the URL is empty
-
-
Method Detail
-
getConnection
protected java.net.HttpURLConnection getConnection() throws HelloSignExceptionDescription copied from class:AbstractHttpRequestThe method class will create the appropriate connection with an endpoint, parameters, etc.- Specified by:
getConnectionin classAbstractHttpRequest- Returns:
- HttpURLConnection used to make the HTTP request
- Throws:
HelloSignException- Thrown if a connection cannot be created- See Also:
AbstractHttpRequest.getConnection()
-
-