khandroid.ext.apache.http.impl.conn.PoolingClientConnectionManager

Here are the examples of the java api class khandroid.ext.apache.http.impl.conn.PoolingClientConnectionManager taken from open source projects.

1. SslHttpClient#createClientConnectionManager()

View license
@Override
protected ClientConnectionManager createClientConnectionManager() {
    SchemeRegistry registry = new SchemeRegistry();
    PlainSocketFactory pfs = PlainSocketFactory.getSocketFactory();
    Scheme s = new Scheme(HTTP_SCHEME, HTTP_DEFAULT_PORT, pfs);
    registry.register(s);
    PoolingClientConnectionManager ret;
    try {
        registry.register(new Scheme(HTTP_SSL_SCHEME, mHttpsPort, new SslSocketFactory(mKeyStore, mKeyStorePassword)));
        ret = new PoolingClientConnectionManager(registry);
    } catch (GeneralSecurityException e) {
        throw new IllegalStateException(e);
    }
    return ret;
}