Package com.logicaldoc.util.http
Class HttpUtil
- java.lang.Object
 - 
- com.logicaldoc.util.http.HttpUtil
 
 
- 
public class HttpUtil extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description HttpUtil() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose(org.apache.http.client.methods.CloseableHttpResponse response)static InputStreamgetBodyStream(org.apache.http.client.methods.CloseableHttpResponse response)static StringgetBodyString(org.apache.http.client.methods.CloseableHttpResponse response)static org.apache.http.impl.client.CloseableHttpClientgetNotValidatingClient(int timeout)static org.apache.http.impl.client.CloseableHttpClientgetNotValidatingClient(int timeout, String proxyServer, Integer proxyPort, String proxyUser, String proxyPassword) 
 - 
 
- 
- 
Method Detail
- 
getNotValidatingClient
public static org.apache.http.impl.client.CloseableHttpClient getNotValidatingClient(int timeout, String proxyServer, Integer proxyPort, String proxyUser, String proxyPassword) 
- 
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
public static String getBodyString(org.apache.http.client.methods.CloseableHttpResponse response)
 
- 
getBodyStream
public static InputStream getBodyStream(org.apache.http.client.methods.CloseableHttpResponse response) throws IllegalStateException, IOException
- Throws:
 IllegalStateExceptionIOException
 
 - 
 
 -