public class DefaultCommonsHTTPClientProperties extends Object implements CommonsHTTPClientProperties
Modifier and Type | Field and Description |
---|---|
static 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
|
static String |
CONNECTION_DEFAULT_SO_TIMEOUT_KEY
the key for the Axis Property that sets the read timeout
for the httpclient
|
static String |
CONNECTION_POOL_TIMEOUT_KEY
the key for the Axis Property that sets the connection pool timeout
for the httpclient pool
|
static 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
|
static String |
MAXIMUM_TOTAL_CONNECTIONS_PROPERTY_KEY
the key for the Axis Property that controls the maximum total connections
allowed in the httpclient pool
|
Constructor and Description |
---|
DefaultCommonsHTTPClientProperties() |
Modifier and Type | Method and Description |
---|---|
int |
getConnectionPoolTimeout()
Return the integer value associated with the property
axis.http.client.connection.pool.timeout or a default of 0.
|
int |
getDefaultConnectionTimeout()
Return the integer value associated with the property
axis.http.client.connection.default.connection.timeout or a default of 0.
|
int |
getDefaultSoTimeout()
Return the integer value associated with the property
axis.http.client.connection.default.so.timeout or a default of 0.
|
protected int |
getIntegerProperty(String property,
String dephault)
Convert the value for property into an int or, if none is found,
use the dephault value instead.
|
int |
getMaximumConnectionsPerHost()
Return the integer value associated with the property
axis.http.client.maximum.connections.per.host or a default of 2.
|
int |
getMaximumTotalConnections()
Return the integer value associated with the property
axis.http.client.maximum.total.connections or a default of 20.
|
public static final String MAXIMUM_TOTAL_CONNECTIONS_PROPERTY_KEY
public static final String MAXIMUM_CONNECTIONS_PER_HOST_PROPERTY_KEY
public static final String CONNECTION_POOL_TIMEOUT_KEY
public static final String CONNECTION_DEFAULT_CONNECTION_TIMEOUT_KEY
public static final String CONNECTION_DEFAULT_SO_TIMEOUT_KEY
protected final int getIntegerProperty(String property, String dephault)
public int getMaximumTotalConnections()
getMaximumTotalConnections
in interface CommonsHTTPClientProperties
public int getMaximumConnectionsPerHost()
getMaximumConnectionsPerHost
in interface CommonsHTTPClientProperties
public int getConnectionPoolTimeout()
getConnectionPoolTimeout
in interface CommonsHTTPClientProperties
public int getDefaultConnectionTimeout()
getDefaultConnectionTimeout
in interface CommonsHTTPClientProperties
public int getDefaultSoTimeout()
getDefaultSoTimeout
in interface CommonsHTTPClientProperties
Copyright © The Apache Software Foundation. All Rights Reserved.