Code example for HttpParams

Methods: setLongParameter

    public static void setTimeout(final HttpParams params, long timeout) {
        if (params == null) {
            throw new IllegalArgumentException("HTTP parameters may not be null");
        params.setLongParameter(TIMEOUT, timeout);
    /** The default maximum number of connections allowed per host */ 
    private static final ConnPerRoute DEFAULT_CONN_PER_ROUTE = new ConnPerRoute() {
        public int getMaxForRoute(HttpRoute route) { 
            return ConnPerRouteBean.DEFAULT_MAX_CONNECTIONS_PER_ROUTE; 
     * Sets lookup interface for maximum number of connections allowed per route. 
Experience pair programming with AI  Get Codota for Java