Code example for HttpClient

Methods: getConnectionManager

0
    public static void closeInstance(HttpClient instance) {
        if (instance instanceof AndroidHttpClient) {
            AndroidHttpClient client = (AndroidHttpClient) instance;
            client.close();
        } else { 
            ClientConnectionManager mgr = instance.getConnectionManager();
            if (mgr != null)
                mgr.shutdown();
        } 
    } 
 
    public static void setUserAgentString(String userAgent) {
    	sUserAgent = userAgent;
    } 
     
    public static String getUserAgentString() {
        return sUserAgent;
    } 
}