@Exported public class IdcRequestConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROP_CONNECT_TIMEOUT |
static String |
PROP_READ_TIMEOUT |
Constructor and Description |
---|
IdcRequestConfig() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
getBooleanProperty(String name,
boolean defaultValue) |
int |
getConnectTimeout()
Gets the connect timeout
|
protected int |
getIntProperty(String name,
int defaultValue) |
protected long |
getLongProperty(String name,
long defaultValue) |
String |
getProperty(String name) |
Collection<String> |
getPropertyNames() |
int |
getReadTimeout()
Gets the read timeout
|
protected String |
getStringProperty(String name,
String defaultValue) |
void |
setConnectTimeout(int timeout)
Sets a specified timeout value, in milliseconds, to be used when opening a connection
The maximum time allowed to make a connection
|
void |
setProperties(Map<String,String> properties) |
void |
setProperty(String name,
String value) |
void |
setReadTimeout(int timeout)
Sets a specified timeout value, in milliseconds, to be used when waiting for response data
The longest period allowed for socket inactivity on reading response
|
public static final String PROP_CONNECT_TIMEOUT
public static final String PROP_READ_TIMEOUT
public Collection<String> getPropertyNames()
public int getConnectTimeout()
public void setConnectTimeout(int timeout)
timeout
- public int getReadTimeout()
public void setReadTimeout(int timeout)
timeout
- protected int getIntProperty(String name, int defaultValue)
protected long getLongProperty(String name, long defaultValue)
protected boolean getBooleanProperty(String name, boolean defaultValue)