Class HttpUtils
- java.lang.Object
-
- com.floragunn.signals.watch.common.HttpUtils
-
public class HttpUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CharsetgetContentEncoding(org.apache.http.HttpEntity entity)static CharsetgetContentEncodingWithFallback(org.apache.http.HttpEntity entity)static StringgetEntityAsDebugString(org.apache.http.client.methods.HttpEntityEnclosingRequestBase response)static StringgetEntityAsDebugString(org.apache.http.HttpResponse response)static StringgetEntityAsString(org.apache.http.HttpResponse response)static StringgetRequestAsDebugString(org.apache.http.client.methods.HttpUriRequest request)
-
-
-
Method Detail
-
getEntityAsString
public static String getEntityAsString(org.apache.http.HttpResponse response) throws IllegalCharsetNameException, UnsupportedCharsetException, IOException
-
getEntityAsDebugString
public static String getEntityAsDebugString(org.apache.http.HttpResponse response)
-
getEntityAsDebugString
public static String getEntityAsDebugString(org.apache.http.client.methods.HttpEntityEnclosingRequestBase response)
-
getContentEncoding
public static Charset getContentEncoding(org.apache.http.HttpEntity entity) throws IllegalCharsetNameException, UnsupportedCharsetException
-
getContentEncodingWithFallback
public static Charset getContentEncodingWithFallback(org.apache.http.HttpEntity entity) throws IllegalCharsetNameException, UnsupportedCharsetException
-
getRequestAsDebugString
public static String getRequestAsDebugString(org.apache.http.client.methods.HttpUriRequest request)
-
-