public class HttpPostUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static DataServiceException |
createExceptionFromResponse(String url,
org.apache.http.HttpResponse httpResponse,
Exception thrownException,
String errorFromResponse) |
static String |
post(org.apache.http.impl.client.CloseableHttpClient httpClient,
String urlStr,
org.apache.http.entity.AbstractHttpEntity requestEntity,
long timeoutMs,
Map<String,String> headers) |
static InputStream |
postToStreamingOutput(org.apache.http.impl.client.CloseableHttpClient httpClient,
String url,
String payload,
long timeoutMs,
Map<String,String> headers) |
static InputStream |
postToStreamingOutput(org.apache.http.impl.client.CloseableHttpClient httpClient,
String url,
String payload,
long timeoutMs,
Map<String,String> headers,
int redirectCount) |
public static String post(org.apache.http.impl.client.CloseableHttpClient httpClient, String urlStr, org.apache.http.entity.AbstractHttpEntity requestEntity, long timeoutMs, Map<String,String> headers) throws DataServiceException, DataClientException
public static InputStream postToStreamingOutput(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, String payload, long timeoutMs, Map<String,String> headers) throws DataServiceException, DataClientException
public static InputStream postToStreamingOutput(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, String payload, long timeoutMs, Map<String,String> headers, int redirectCount) throws DataServiceException, DataClientException
public static DataServiceException createExceptionFromResponse(String url, org.apache.http.HttpResponse httpResponse, Exception thrownException, String errorFromResponse)
Copyright © 2024. All rights reserved.