org.idoox.transport.config
Interface HttpClientConfig

All Superinterfaces:
TransportConfig
All Known Subinterfaces:
HttpsClientConfig

public interface HttpClientConfig
extends TransportConfig

A config interface for HTTP client.

Component:
Core

Method Summary
 int getChunkSize()
          Gets maximum size of request chunks.
 int getDefaultTimeout()
          Gets default timeout for connections in milliseconds.
 java.lang.String getNonProxyHosts()
          Gets a comma separated list of non proxy hosts.
 java.lang.String getProxyHost()
          Gets a host name for the proxy server like proxy.in.idoox.com or null if no proxy is used.
 int getProxyPort()
          Gets the proxy port like 3128 or -1 if this one is not specified.
 boolean getRequestChunking()
          Gets if requests will be chunked or not.
 void setChunkSize(int value)
          Sets maximum size of request chunks.
 void setDefaultTimeout(int value)
          Sets default timeout for connections in milliseconds.
 void setNonProxyHosts(java.lang.String nonProxyHosts)
          Sets a comma separated list of non proxy hosts.
 void setProxyHost(java.lang.String proxyHost)
          Sets a host name for the proxy server like proxy.in.idoox.com.
 void setProxyPort(int proxyPort)
          Sets the proxy port like 3128.
 void setRequestChunking(boolean value)
          Sets if requests will be chunked or not.
 
Methods inherited from interface org.idoox.transport.config.TransportConfig
getClassName, getClassSpaceName, getDefaultServer, getName, getPreload, getScheme, setClassName, setClassSpaceName, setDefaultServer, setName, setPreload, setScheme
 

Method Detail

getDefaultTimeout

public int getDefaultTimeout()
Gets default timeout for connections in milliseconds. 0 means infinite timeout.

Returns:
default timeout

setDefaultTimeout

public void setDefaultTimeout(int value)
Sets default timeout for connections in milliseconds. 0 means infinite timeout.

Parameters:
value - default timeout

getRequestChunking

public boolean getRequestChunking()
Gets if requests will be chunked or not.

Returns:
true if requests use chunked encoding otherwise false

setRequestChunking

public void setRequestChunking(boolean value)
Sets if requests will be chunked or not.

Parameters:
value - true if requests use chunked encoding otherwise false

getChunkSize

public int getChunkSize()
Gets maximum size of request chunks.

Returns:
chunk size

setChunkSize

public void setChunkSize(int value)
Sets maximum size of request chunks.

Parameters:
value - chunk size

getProxyHost

public java.lang.String getProxyHost()
Gets a host name for the proxy server like proxy.in.idoox.com or null if no proxy is used.

Returns:
the proxy host name

setProxyHost

public void setProxyHost(java.lang.String proxyHost)
Sets a host name for the proxy server like proxy.in.idoox.com.

Parameters:
proxyHost - the proxy host name

getProxyPort

public int getProxyPort()
Gets the proxy port like 3128 or -1 if this one is not specified.

Returns:
the proxy port

setProxyPort

public void setProxyPort(int proxyPort)
Sets the proxy port like 3128.

Parameters:
proxyPort - the proxy port

getNonProxyHosts

public java.lang.String getNonProxyHosts()
Gets a comma separated list of non proxy hosts.

Returns:
list of non proxy hosts

setNonProxyHosts

public void setNonProxyHosts(java.lang.String nonProxyHosts)
Sets a comma separated list of non proxy hosts.

Parameters:
nonProxyHosts - list of non proxy hosts