Package fr.paris.lutece.util.httpaccess
Class HttpClientConfiguration
java.lang.Object
fr.paris.lutece.util.httpaccess.HttpClientConfiguration
- Direct Known Subclasses:
PropertiesHttpClientConfiguration
The Class HttpClientConfiguration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the connection pool max connection per host.Gets the connection pool max total connection.Gets the connection timeout.Gets the content charset.Gets the domain name.Gets the element charset.Gets the host name.Gets the no proxy for.Gets the proxy host.Gets the proxy password.Gets the proxy port.Gets the proxy user name.getRealm()Gets the realm.Gets the socket timeout.booleanDeprecated.pooling is always enabledvoidsetConnectionPoolEnabled(boolean _bConnectionPoolEnabled) Deprecated.pooling is always enabledvoidsetConnectionPoolMaxConnectionPerHost(Integer nConnectionPoolMaxConnectionPerHost) Sets the connection pool max connection per host.voidsetConnectionPoolMaxTotalConnection(Integer nConnectionPoolMaxTotalConnection) Sets the connection pool max total connection.voidsetConnectionTimeout(Integer nConnectionTimeout) Sets the connection timeout.voidsetContentCharset(String _strContentCharset) Sets the content charset.voidsetDomainName(String _strDomainName) Sets the domain name.voidsetElementCharset(String _strElementCharset) Sets the element charset.voidsetHostName(String _strHostName) Sets the host name.voidsetNoProxyFor(String _strNoProxyFor) Sets the no proxy for.voidsetProxyHost(String _strProxyHost) Sets the proxy host.voidsetProxyPassword(String _strProxyPassword) Sets the proxy password.voidsetProxyPort(String _strProxyPort) Sets the proxy port.voidsetProxyUserName(String _strProxyUserName) Sets the proxy user name.voidSets the realm.voidsetSocketTimeout(Integer nSocketTimeout) Sets the socket timeout.
-
Constructor Details
-
HttpClientConfiguration
public HttpClientConfiguration()
-
-
Method Details
-
getProxyHost
Gets the proxy host.- Returns:
- the proxy host
-
setProxyHost
Sets the proxy host.- Parameters:
_strProxyHost- the new proxy host
-
getProxyPort
Gets the proxy port.- Returns:
- the proxy port
-
setProxyPort
Sets the proxy port.- Parameters:
_strProxyPort- the new proxy port
-
getProxyUserName
Gets the proxy user name.- Returns:
- the proxy user name
-
setProxyUserName
Sets the proxy user name.- Parameters:
_strProxyUserName- the new proxy user name
-
getProxyPassword
Gets the proxy password.- Returns:
- the proxy password
-
setProxyPassword
Sets the proxy password.- Parameters:
_strProxyPassword- the new proxy password
-
getHostName
Gets the host name.- Returns:
- the host name
-
setHostName
Sets the host name.- Parameters:
_strHostName- the new host name
-
getDomainName
Gets the domain name.- Returns:
- the domain name
-
setDomainName
Sets the domain name.- Parameters:
_strDomainName- the new domain name
-
getRealm
Gets the realm.- Returns:
- the realm
-
setRealm
Sets the realm.- Parameters:
_strRealm- the new realm
-
getNoProxyFor
Gets the no proxy for.- Returns:
- the no proxy for
-
setNoProxyFor
Sets the no proxy for.- Parameters:
_strNoProxyFor- the new no proxy for
-
getContentCharset
Gets the content charset.- Returns:
- the content charset
-
setContentCharset
Sets the content charset.- Parameters:
_strContentCharset- the new content charset
-
getElementCharset
Gets the element charset.- Returns:
- the element charset
-
setElementCharset
Sets the element charset.- Parameters:
_strElementCharset- the new element charset
-
getSocketTimeout
Gets the socket timeout.- Returns:
- the socket timeout
-
setSocketTimeout
Sets the socket timeout.- Parameters:
nSocketTimeout- the new socket timeout
-
getConnectionTimeout
Gets the connection timeout.- Returns:
- the connection timeout
-
setConnectionTimeout
Sets the connection timeout.- Parameters:
nConnectionTimeout- the new connection timeout
-
isConnectionPoolEnabled
public boolean isConnectionPoolEnabled()Deprecated.pooling is always enabledChecks if is connection pool enabled.- Returns:
true
-
setConnectionPoolEnabled
public void setConnectionPoolEnabled(boolean _bConnectionPoolEnabled) Deprecated.pooling is always enabledSets the connection pool enabled.- Parameters:
_bConnectionPoolEnabled- the new connection pool enabled
-
getConnectionPoolMaxTotalConnection
Gets the connection pool max total connection.- Returns:
- the connection pool max total connection
-
setConnectionPoolMaxTotalConnection
Sets the connection pool max total connection.- Parameters:
nConnectionPoolMaxTotalConnection- the new connection pool max total connection
-
getConnectionPoolMaxConnectionPerHost
Gets the connection pool max connection per host.- Returns:
- the connection pool max connection per host
-
setConnectionPoolMaxConnectionPerHost
Sets the connection pool max connection per host.- Parameters:
nConnectionPoolMaxConnectionPerHost- the new connection pool max connection per host
-