HttpClient httpClient = new DefaultHttpClient(); HttpParams httpParams = httpClient.getParams();
HttpClient httpClient = new DefaultHttpClient(); HttpParams httpParams = httpClient.getParams(); ConnManagerParams.setMaxConnectionsPerRoute(httpParams, new ConnPerRouteBean(10));Package Library: The org.apache.http.client package is part of the Apache HttpClient library, which provides a set of classes and interfaces for making HTTP requests and working with HTTP responses in Java applications. The library is available for download from the Apache HttpComponents website.