public class HttpUtils
extends java.lang.Object
Constructor and Description |
---|
HttpUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
consumeAndCloseConnection(java.net.HttpURLConnection c)
Ensure a HttpURLConnection is fully read, required for correct behavior
|
static void |
consumeAndCloseConnectionSilently(java.net.HttpURLConnection c)
Ensure a HttpURLConnection is fully read, required for correct behavior.
|
public static void consumeAndCloseConnectionSilently(java.net.HttpURLConnection c)
c
- the connection to be closed silentlypublic static void consumeAndCloseConnection(java.net.HttpURLConnection c) throws java.io.IOException
c
- connection to be closedjava.io.IOException
- if connection fade