public final class WrappedHttpGetRequest<T> extends java.lang.Object implements HttpGetRequest<T>
Constructor and Description |
---|
WrappedHttpGetRequest(java.net.HttpURLConnection connection) |
Modifier and Type | Method and Description |
---|---|
HttpResponse<T> |
execute()
Execute the HTTP request
|
HttpGetRequest<T> |
setResponseDeserializer(ResponseDeserializer<T> deserializer)
Set the custom deserializer, this replace the GSON default deserializer
|
public WrappedHttpGetRequest(java.net.HttpURLConnection connection)
public HttpGetRequest<T> setResponseDeserializer(ResponseDeserializer<T> deserializer)
setResponseDeserializer
in interface HttpGetRequest<T>
deserializer
- The custom deserializer for the JSON Responsepublic HttpResponse<T> execute() throws FailedConnectionException
execute
in interface HttpRequest<T>
FailedConnectionException
- if server does not respond correctly