public class HttpUtil
extends java.lang.Object
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.http.impl.client.CloseableHttpClient |
createHttpClient(java.lang.String SSLCertType,
java.lang.String protocol,
javax.net.ssl.SSLContext sslContext,
int timeout) |
static org.apache.http.client.methods.CloseableHttpResponse |
executeHttpMethod(org.apache.http.impl.client.CloseableHttpClient httpClient,
org.apache.http.client.methods.HttpRequestBase httpMethod) |
static java.security.KeyStore |
getSSLKeystore() |
public static org.apache.http.client.methods.CloseableHttpResponse executeHttpMethod(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpMethod) throws java.io.IOException, org.apache.commons.httpclient.HttpException, ServerNotAvailableException
java.io.IOException
org.apache.commons.httpclient.HttpException
ServerNotAvailableException
public static org.apache.http.impl.client.CloseableHttpClient createHttpClient(java.lang.String SSLCertType, java.lang.String protocol, javax.net.ssl.SSLContext sslContext, int timeout) throws java.lang.Exception
java.lang.Exception
public static java.security.KeyStore getSSLKeystore()