Code example for AbstractHttpClient

Methods: getConnectionManager

0
    } 
 
    public static void setPortForScheme(String s, int i)
    { 
        Scheme scheme = new Scheme(s, PlainSocketFactory.getSocketFactory(), i);
        httpClient.getConnectionManager().getSchemeRegistry().register(scheme);
    } 
 
    public static void setSocketTimeout(int i)
    { 
        socketTimeout = i;
        HttpConnectionParams.setSoTimeout(httpClient.getParams(), i);
    } 
 
    public static void setUserAgent(String s)
    { 
        httpUserAgent = s;
        HttpProtocolParams.setUserAgent(httpClient.getParams(), s);
    } 
 
    public static void setupHttpClient()