public class HttpGetRequester extends Object
| Constructor and Description |
|---|
HttpGetRequester() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getResponseAsString(String uri)
Gets response as string.
|
static String |
getResponseAsString(String uri,
String charsetName)
Gets response as string.
|
static <T> T |
getRestApiResponseAsObject(String uri,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
Gets rest api response as object.
|
public static <T> T getRestApiResponseAsObject(String uri, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
T - the type parameteruri - the uritypeReference - the type referencepublic static String getResponseAsString(String uri)
uri - the uriCopyright © 2018. All rights reserved.