|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fourthline.cling.transport.impl.apache.StreamClientConfigurationImpl
public class StreamClientConfigurationImpl
Settings for the Apache HTTP Components implementation.
Constructor Summary | |
---|---|
StreamClientConfigurationImpl()
|
Method Summary | |
---|---|
int |
getConnectionTimeoutSeconds()
Defaults to 20 seconds. |
String |
getContentCharset()
|
int |
getDataReadTimeoutSeconds()
Defaults to 60 seconds. |
int |
getMaxTotalConnections()
Defaults to 1024. |
int |
getMaxTotalPerRoute()
Defaults to 100. |
int |
getRequestRetryCount()
If -1, the default value of HttpClient will be used (3 in httpclient 4.1) |
int |
getSocketBufferSize()
If -1, the default value of HttpClient will be used (8192 in httpclient 4.1) |
boolean |
getStaleCheckingEnabled()
|
String |
getUserAgentValue(int majorVersion,
int minorVersion)
Defaults to string value of ServerClientTokens . |
void |
setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
|
void |
setContentCharset(String contentCharset)
|
void |
setDataReadTimeoutSeconds(int dataReadTimeoutSeconds)
|
void |
setMaxTotalConnections(int maxTotalConnections)
|
void |
setMaxTotalPerRoute(int maxTotalPerRoute)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamClientConfigurationImpl()
Method Detail |
---|
public int getMaxTotalConnections()
public void setMaxTotalConnections(int maxTotalConnections)
public int getMaxTotalPerRoute()
public void setMaxTotalPerRoute(int maxTotalPerRoute)
public int getConnectionTimeoutSeconds()
public void setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
public int getDataReadTimeoutSeconds()
public void setDataReadTimeoutSeconds(int dataReadTimeoutSeconds)
public String getContentCharset()
public void setContentCharset(String contentCharset)
public String getUserAgentValue(int majorVersion, int minorVersion)
ServerClientTokens
.
getUserAgentValue
in interface StreamClientConfiguration
majorVersion
- The UPnP UDA major version.minorVersion
- The UPnP UDA minor version.
public int getSocketBufferSize()
This will also avoid OOM on the HTC Thunderbolt where default size is 2MB (!): http://stackoverflow.com/questions/5358014/android-httpclient-oom-on-4g-lte-htc-thunderbolt
public boolean getStaleCheckingEnabled()
public int getRequestRetryCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |