Code example for SingleClientConnManager

0
		params.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 30);
		params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, new ConnPerRouteBean(30));
		params.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false);
		HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
		 
		ClientConnectionManager cm = new SingleClientConnManager(null, schemeRegistry);
		_httpClient = new TrustedDefaultHttpClient(cm, params, IngogoApp.getSharedApplication().getApplicationContext());
	} 
	public void setAuthenticationParams(String username, String password) {
		this._userName = username;
		this._password = password;
		Authenticator.setDefault(new Authenticator() {
			@Override 
			protected PasswordAuthentication getPasswordAuthentication() {
				return new PasswordAuthentication(_userName, _password
						.toCharArray());
			} 
		}); 
	} 
 
	@Override