public class HttpRestClient extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONNECT_TIMEOUT |
static int |
DEFAULT_CONNECTION_POOL_SIZE |
static int |
DEFAULT_READ_TIMEOUT_IN_SEC |
static int |
DEFAULT_SOCKET_TIMEOUT |
Constructor and Description |
---|
HttpRestClient() |
HttpRestClient(RestConfigurationInfo restConfigurationInfo) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
RestResponse |
doGET(String uri,
Properties headers)
Executes RS-GET to perform FIND.
|
RestResponseAsByteArray |
doGetAsByteArray(String uri,
Properties headers) |
RestResponse |
doPOST(String uri,
Properties headers,
String body) |
RestResponse |
doPUT(String uri,
Properties headers,
String body) |
boolean |
init(RestConfigurationInfo restConfigurationInfo) |
boolean |
isInitialized() |
public static final int DEFAULT_CONNECTION_POOL_SIZE
public static final int DEFAULT_READ_TIMEOUT_IN_SEC
public static final int DEFAULT_CONNECT_TIMEOUT
public static final int DEFAULT_SOCKET_TIMEOUT
public HttpRestClient()
public HttpRestClient(RestConfigurationInfo restConfigurationInfo)
public boolean init(RestConfigurationInfo restConfigurationInfo)
public void destroy()
public RestResponse doGET(String uri, Properties headers)
headerParameterKey
- StringheaderParameterValue
- Stringpublic RestResponse doPUT(String uri, Properties headers, String body)
public RestResponse doPOST(String uri, Properties headers, String body)
public RestResponseAsByteArray doGetAsByteArray(String uri, Properties headers)
public boolean isInitialized()
Copyright © 2017. All rights reserved.