package com.amalgam.net;

import java.net.HttpURLConnection;

/**
 */
public class HttpURLConnectionUtils {
    private HttpURLConnectionUtils() {}

    public static final void disconnect(HttpURLConnection connection) {
        if (connection == null) {
            return;
        }
        connection.disconnect();
    }
}
@@ -19,16 +19,42 @@
 m.net;%0A%0A
+import android.os.Build;%0A%0A
 import j
@@ -85,16 +85,50 @@
 n;%0A%0A/**%0A
+ * Utility for HttpURLConnection.%0A
  */%0Apubl
@@ -169,213 +169,682 @@
     
-private HttpURLConnectionUtils() %7B%7D%0A%0A    public static final void disconnect(HttpURLConnection connection) %7B%0A        if (connection == null) %7B%0A            return;%0A        %7D%0A        connection.disconnect();
+/**%0A     * Do NOT instantiate this class.%0A     */%0A    private HttpURLConnectionUtils() %7B%7D%0A%0A    /**%0A     * @see %7B@link java.net.HttpURLConnection#disconnect()%7D%0A     * @param connection%0A     */%0A    public static final void disconnect(HttpURLConnection connection) %7B%0A        if (connection == null) %7B%0A            return;%0A        %7D%0A        connection.disconnect();%0A    %7D%0A%0A    /**%0A     * Avoid connection pool pollution on connection reuse by disabling it earlier than Froyo.%0A     */%0A    public static final void avoidConnectionPoolPollution() %7B%0A        if (Build.VERSION_CODES.FROYO %3E Build.VERSION.SDK_INT) %7B%0A            System.setProperty(%22http.keepAlive%22, %22false%22);%0A        %7D
 %0A   

Add util method for http url connection