public class RestOptions
extends java.lang.Object
implements java.io.Serializable
RestServices.
 | Constructor and Description | 
|---|
RestOptions()  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Integer | 
getConnectionTimeout()  | 
java.lang.String | 
getResponseCharset()  | 
java.lang.Integer | 
getSocketTimeout()  | 
void | 
setConnectionTimeout(java.lang.Integer connectionTimeout)
Sets the number of seconds to wait to establish a connection with the target rest URL before timing out. 
 | 
void | 
setResponseCharset(java.lang.String responseCharset)
Sets the default charset to be applied when reading the response if the charset is not found in the response header Content-Type. 
 | 
void | 
setSocketTimeout(java.lang.Integer socketTimeout)
Sets the number of seconds of inactivity to wait from the target REST server before timing out. 
 | 
public java.lang.Integer getSocketTimeout()
setSocketTimeout(Integer)public void setSocketTimeout(java.lang.Integer socketTimeout)
socketTimeout - getSocketTimeout()public java.lang.Integer getConnectionTimeout()
setConnectionTimeout(Integer)public void setConnectionTimeout(java.lang.Integer connectionTimeout)
connectionTimeout - getConnectionTimeout()public java.lang.String getResponseCharset()
For example: Content-Type: text/html; charset=UTF-8.
ISO-8859-1 is the default charset applied if no charset is supplied.
setResponseCharset(String)public void setResponseCharset(java.lang.String responseCharset)
For example: Content-Type: text/html; charset=UTF-8.
ISO-8859-1 is the default charset applied if no charset is supplied.
getResponseCharset()