Package com.oracle.content.sdk
Class ContentSettings
java.lang.Object
com.oracle.content.sdk.ContentSettings
For finer control over the SDK settings, such as enabling the cache or changing the connection timeout.
- 
Constructor Summary
ConstructorsConstructorDescriptionConstruct general settings, using defaults (no cache, default timeout) - 
Method Summary
Modifier and TypeMethodDescriptionenableCache(File cacheDir) Enable the cache using the specified folder for the cache.setCacheSettings(CacheSettings settings) Set more specific set of cache settings.setTimeoutSeconds(int connectionTimeoutSeconds) setUserAgentHeader(String userAgentHeader) Set the "User-Agent" header to be sent with each SDK request. 
- 
Constructor Details
- 
ContentSettings
public ContentSettings()Construct general settings, using defaults (no cache, default timeout) 
 - 
 - 
Method Details
- 
enableCache
Enable the cache using the specified folder for the cache. This will enable the both http and asset caches and use all defaults. For more specific cache settings, usesetCacheSettings(CacheSettings)- Parameters:
 cacheDir- folder to use for cache data- Returns:
 - this
 
 - 
setUserAgentHeader
Set the "User-Agent" header to be sent with each SDK request.- Parameters:
 userAgentHeader- User-Agent header value- Returns:
 - this
 
 - 
setCacheSettings
Set more specific set of cache settings. SeeCacheSettings- Parameters:
 settings- Cache settings- Returns:
 - this
 
 - 
setTimeoutSeconds
 - 
getConnectionTimeoutSeconds
 - 
getCacheSettings
 - 
getUserAgentHeader
 
 -