org.apache.axis.components.net

Class DefaultCommonsHTTPClientProperties

public class DefaultCommonsHTTPClientProperties extends Object implements CommonsHTTPClientProperties

Default property set for the of the multi threaded connection pool used in the CommonsHTTPSender transport implementation. Values returned by this implementation are identical to the defaults for the Commons HTTPClient library itself, unless overridden with Axis properties.

Author: Eric Friedman

Field Summary
static StringCONNECTION_DEFAULT_CONNECTION_TIMEOUT_KEY
the key for the Axis Property that sets the default connection timeout for the httpclient, can be overriden by the MessageContext
static StringCONNECTION_DEFAULT_SO_TIMEOUT_KEY
the key for the Axis Property that sets the read timeout for the httpclient
static StringCONNECTION_POOL_TIMEOUT_KEY
the key for the Axis Property that sets the connection pool timeout for the httpclient pool
static StringMAXIMUM_CONNECTIONS_PER_HOST_PROPERTY_KEY
the key for the Axis Property that controls the maximum connections per host allowed by the httpclient pool
static StringMAXIMUM_TOTAL_CONNECTIONS_PROPERTY_KEY
the key for the Axis Property that controls the maximum total connections allowed in the httpclient pool
Method Summary
intgetConnectionPoolTimeout()
Return the integer value associated with the property axis.http.client.connection.pool.timeout or a default of 0.
intgetDefaultConnectionTimeout()
Return the integer value associated with the property axis.http.client.connection.default.connection.timeout or a default of 0.
intgetDefaultSoTimeout()
Return the integer value associated with the property axis.http.client.connection.default.so.timeout or a default of 0.
protected intgetIntegerProperty(String property, String dephault)
Convert the value for property into an int or, if none is found, use the dephault value instead.
intgetMaximumConnectionsPerHost()
Return the integer value associated with the property axis.http.client.maximum.connections.per.host or a default of 2.
intgetMaximumTotalConnections()
Return the integer value associated with the property axis.http.client.maximum.total.connections or a default of 20.

Field Detail

CONNECTION_DEFAULT_CONNECTION_TIMEOUT_KEY

public static final String CONNECTION_DEFAULT_CONNECTION_TIMEOUT_KEY
the key for the Axis Property that sets the default connection timeout for the httpclient, can be overriden by the MessageContext

CONNECTION_DEFAULT_SO_TIMEOUT_KEY

public static final String CONNECTION_DEFAULT_SO_TIMEOUT_KEY
the key for the Axis Property that sets the read timeout for the httpclient

CONNECTION_POOL_TIMEOUT_KEY

public static final String CONNECTION_POOL_TIMEOUT_KEY
the key for the Axis Property that sets the connection pool timeout for the httpclient pool

MAXIMUM_CONNECTIONS_PER_HOST_PROPERTY_KEY

public static final String MAXIMUM_CONNECTIONS_PER_HOST_PROPERTY_KEY
the key for the Axis Property that controls the maximum connections per host allowed by the httpclient pool

MAXIMUM_TOTAL_CONNECTIONS_PROPERTY_KEY

public static final String MAXIMUM_TOTAL_CONNECTIONS_PROPERTY_KEY
the key for the Axis Property that controls the maximum total connections allowed in the httpclient pool

Method Detail

getConnectionPoolTimeout

public int getConnectionPoolTimeout()
Return the integer value associated with the property axis.http.client.connection.pool.timeout or a default of 0.

Returns: an integer >= 0

getDefaultConnectionTimeout

public int getDefaultConnectionTimeout()
Return the integer value associated with the property axis.http.client.connection.default.connection.timeout or a default of 0.

Returns: an integer >= 0

getDefaultSoTimeout

public int getDefaultSoTimeout()
Return the integer value associated with the property axis.http.client.connection.default.so.timeout or a default of 0.

Returns: an integer >= 0

getIntegerProperty

protected final int getIntegerProperty(String property, String dephault)
Convert the value for property into an int or, if none is found, use the dephault value instead.

Returns: an integer value

getMaximumConnectionsPerHost

public int getMaximumConnectionsPerHost()
Return the integer value associated with the property axis.http.client.maximum.connections.per.host or a default of 2.

Returns: a whole integer

getMaximumTotalConnections

public int getMaximumTotalConnections()
Return the integer value associated with the property axis.http.client.maximum.total.connections or a default of 20.

Returns: a whole integer

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.