Class RIDCHttpClientUtils
java.lang.Object
oracle.stellent.ridc.common.http.utils.RIDCHttpClientUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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) getResponseHeaders
(List<RIDCHttpHeader> headers) static boolean
isRedirectStatus
(int statusCode)
-
Constructor Details
-
RIDCHttpClientUtils
public RIDCHttpClientUtils()
-
-
Method Details
-
createHttpClient
public static RIDCHttpClient createHttpClient(RIDCHttpClientProvider clientProvider, IdcHttpClientConfig config, boolean multithreaded) throws IdcClientException - Throws:
IdcClientException
-
addRequestData
public 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.- Parameters:
context
- the idc contexthttpClient
- the http clienthttpMethod
- the http method to set the parametersrequestConfig
- the request specific configuration / overridesaddCookies
-
-
getResponseHeaders
-
isRedirectStatus
public static boolean isRedirectStatus(int statusCode)
-