public class RIDCHttpClientUtils extends Object
| Constructor and Description |
|---|
RIDCHttpClientUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addRequestData(IdcContext context, RIDCHttpClient httpClient, RIDCHttpMethod httpMethod, IdcRequestConfig requestConfig, boolean addCookies)
Set standard request headers, cookies and other info into the HTTP method.
|
static RIDCHttpClient |
createHttpClient(RIDCHttpClientProvider clientProvider, IdcHttpClientConfig config, boolean multithreaded) |
static Map<String,String> |
getResponseHeaders(List<RIDCHttpHeader> headers) |
static boolean |
isRedirectStatus(int statusCode) |
public static RIDCHttpClient createHttpClient(RIDCHttpClientProvider clientProvider, IdcHttpClientConfig config, boolean multithreaded) throws IdcClientException
IdcClientExceptionpublic static void addRequestData(IdcContext context, RIDCHttpClient httpClient, RIDCHttpMethod httpMethod, IdcRequestConfig requestConfig, boolean addCookies)
context - the idc contexthttpClient - the http clienthttpMethod - the http method to set the parametersrequestConfig - the request specific configuration / overridesaddCookies -public static Map<String,String> getResponseHeaders(List<RIDCHttpHeader> headers)
public static boolean isRedirectStatus(int statusCode)