Package net.sourceforge.jnlp.util
Class HttpUtils
java.lang.Object
net.sourceforge.jnlp.util.HttpUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Ensure a HttpURLConnection is fully read, required for correct behaviorstatic void
Ensure a HttpURLConnection is fully read, required for correct behavior.
-
Constructor Details
-
HttpUtils
public HttpUtils()
-
-
Method Details
-
consumeAndCloseConnectionSilently
Ensure a HttpURLConnection is fully read, required for correct behavior. Captured IOException is consumed and printed- Parameters:
c
- the connection to be closed silently
-
consumeAndCloseConnection
Ensure a HttpURLConnection is fully read, required for correct behavior- Parameters:
c
- connection to be closed- Throws:
IOException
- if connection fade
-