Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public final class

ConnPerRouteBean

extends Object
implements ConnPerRoute
java.lang.Object
   ↳ org.apache.http.conn.params.ConnPerRouteBean

Class Overview

This class maintains a map of HTTP routes to maximum number of connections allowed for those routes. This class can be used by pooling connection managers for a fine-grained control of connections on a per route basis.

Summary

Constants
int DEFAULT_MAX_CONNECTIONS_PER_ROUTE The default maximum number of connections allowed per host
Public Constructors
ConnPerRouteBean (int defaultMax)
ConnPerRouteBean ()
Public Methods
int getDefaultMax ()
int getMaxForRoute ( HttpRoute route)
void setDefaultMaxPerRoute (int max)
void setMaxForRoute ( HttpRoute route, int max)
void )">setMaxForRoutes ( Map < HttpRoute Integer > map)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.conn.params.ConnPerRoute

Constants

public static final int DEFAULT_MAX_CONNECTIONS_PER_ROUTE

Added in API level 1

The default maximum number of connections allowed per host

Constant Value: 2 (0x00000002)

Public Constructors

public ConnPerRouteBean (int defaultMax)

Added in API level 1

public ConnPerRouteBean ()

Added in API level 1

Public Methods

public int getDefaultMax ()

Added in API level 1

public int getMaxForRoute ( HttpRoute route)

Added in API level 1

public void setDefaultMaxPerRoute (int max)

Added in API level 1

public void setMaxForRoute ( HttpRoute route, int max)

Added in API level 1

)">

public void setMaxForRoutes ( Map < HttpRoute Integer > map)

Added in API level 1