public class HttpRestUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
API_KEY_SEGMENT |
| Constructor and Description |
|---|
HttpRestUtils(PropertiesManager manager) |
| Modifier and Type | Method and Description |
|---|---|
<T> RestResponse<T> |
httpGet(String path,
Class<T> targetClass) |
<T> RestResponse<T> |
httpGet(String path,
String params,
Class<T> targetClass) |
<T> RestResponse<T> |
httpPost(String path,
String[] paramNames,
String[] paramVals,
Class<T> targetClass) |
<T> RestResponse<T> |
httpPostFile(String path,
File file,
String[] paramNames,
String[] paramVals,
Class<T> targetClass) |
public static final String API_KEY_SEGMENT
public HttpRestUtils(@Nonnull PropertiesManager manager)
@Nonnull public <T> RestResponse<T> httpPostFile(@Nonnull String path, @Nonnull File file, @Nonnull String[] paramNames, @Nonnull String[] paramVals, @Nonnull Class<T> targetClass)
@Nonnull public <T> RestResponse<T> httpPost(@Nonnull String path, @Nonnull String[] paramNames, @Nonnull String[] paramVals, @Nonnull Class<T> targetClass)
@Nonnull public <T> RestResponse<T> httpGet(@Nonnull String path, @Nonnull Class<T> targetClass)
Copyright © 2015 Denim Group, Ltd.. All rights reserved.