Package com.logicaldoc.util.http
Class HttpUtil
java.lang.Object
com.logicaldoc.util.http.HttpUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
close
(org.apache.http.client.methods.CloseableHttpResponse response) static InputStream
getBodyStream
(org.apache.http.client.methods.CloseableHttpResponse response) static String
getBodyString
(org.apache.http.client.methods.CloseableHttpResponse response) static org.apache.http.impl.client.CloseableHttpClient
getNotValidatingClient
(int timeout) static org.apache.http.impl.client.CloseableHttpClient
getNotValidatingClient
(int timeout, String proxyServer, Integer proxyPort, String proxyUser, String proxyPassword)
-
Method Details
-
getNotValidatingClient
-
getNotValidatingClient
public static org.apache.http.impl.client.CloseableHttpClient getNotValidatingClient(int timeout) -
close
public static void close(org.apache.http.client.methods.CloseableHttpResponse response) -
getBodyString
-
getBodyStream
public static InputStream getBodyStream(org.apache.http.client.methods.CloseableHttpResponse response) throws IllegalStateException, IOException - Throws:
IllegalStateException
IOException
-