Package com.force.api
Class ApiConfig
java.lang.Object
com.force.api.ApiConfig
public class ApiConfig extends Object
-
Constructor Summary
Constructors Constructor Description ApiConfig() -
Method Summary
-
Constructor Details
-
ApiConfig
public ApiConfig()
-
-
Method Details
-
clone
-
setForceURL
-
setRedirectURI
-
setApiVersion
-
setApiVersionString
-
setUsername
-
setPassword
-
setLoginEndpoint
-
setClientId
-
setClientSecret
-
setSessionRefreshListener
-
setObjectMapper
-
setRequestTimeout
sets both connect timeout and read timeout on HttpUrlConnection to the specified value. A value of 0 (zero) means no timeout. The default is no timeout.- Parameters:
requestTimeout- timeout in milliseconds. A value of 0 means no timeout.- Returns:
- this ApiConfig instance
-
getUsername
-
getPassword
-
getLoginEndpoint
-
getClientId
-
getClientSecret
-
getRedirectURI
-
getSessionRefreshListener
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getRequestTimeout
public int getRequestTimeout() -
getApiVersion
Deprecated.use #getApiVersionString instead- Returns:
- enum representing api version
-
getApiVersionString
-