public abstract class HttpTransportConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
HttpTransportConfiguration(String fileName)
Create a new HttpTransportConfiguration instance.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getBooleanProperty(String name)
Get a Boolean property that tunes the http transport.
|
Boolean |
getBooleanProperty(String name,
Boolean def)
Get a boolean property that tunes the http transport.
|
org.apache.http.impl.nio.reactor.IOReactorConfig |
getConnectingReactorConfig()
Get the connecting I/O reactor configuration
|
org.apache.http.config.ConnectionConfig |
getConnectionConfig()
Get the connection configuration
|
Integer |
getIntProperty(String name)
Get an int property that tunes the http transport.
|
Integer |
getIntProperty(String name,
Integer def)
Get an int property that tunes the http transport.
|
org.apache.http.impl.nio.reactor.IOReactorConfig |
getListeningReactorConfig()
Get the listening I/O reactor configuration
|
String |
getStringProperty(String name,
String def)
Get a String property that tunes the http transport.
|
protected abstract int |
getThreadsPerReactor()
Get the number of I/O dispatcher threads that should be used in each IOReactor.
|
public HttpTransportConfiguration(String fileName)
fileName
- Name of the file (without extensions) from where the transport
configuration should be loaded.protected abstract int getThreadsPerReactor()
public org.apache.http.impl.nio.reactor.IOReactorConfig getListeningReactorConfig()
public org.apache.http.impl.nio.reactor.IOReactorConfig getConnectingReactorConfig()
public org.apache.http.config.ConnectionConfig getConnectionConfig()
public Integer getIntProperty(String name, Integer def)
name
- name of the system/config propertydef
- default value to return if the property is not setpublic Integer getIntProperty(String name)
name
- name of the system/config propertypublic Boolean getBooleanProperty(String name, Boolean def)
name
- name of the system/config propertydef
- default value to return if the property is not setpublic Boolean getBooleanProperty(String name)
name
- name of the system/config propertypublic String getStringProperty(String name, String def)
name
- name of the system/config propertydef
- default value to return if the property is not setCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.