|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A config interface for HTTP client.
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 |
public int getDefaultTimeout()
0
means infinite timeout.
public void setDefaultTimeout(int value)
0
means infinite timeout.
value
- default timeoutpublic boolean getRequestChunking()
true
if requests use chunked encoding
otherwise false
public void setRequestChunking(boolean value)
value
- true
if requests use chunked encoding
otherwise false
public int getChunkSize()
public void setChunkSize(int value)
value
- chunk sizepublic java.lang.String getProxyHost()
proxy.in.idoox.com
or null
if no
proxy is used.
public void setProxyHost(java.lang.String proxyHost)
proxy.in.idoox.com
.
proxyHost
- the proxy host namepublic int getProxyPort()
3128
or -1
if this one is not specified.
public void setProxyPort(int proxyPort)
3128
.
proxyPort
- the proxy portpublic java.lang.String getNonProxyHosts()
public void setNonProxyHosts(java.lang.String nonProxyHosts)
nonProxyHosts
- list of non proxy hosts
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |