public interface AtomConfig
Modifier and Type | Method and Description |
---|---|
Boolean |
getBooleanContainerProperty(String key)
Gets the property value for the given key as a Boolean.
|
boolean |
getBooleanContainerProperty(String key,
boolean defaultValue)
Gets the property value for the given key as a boolean, returning the defaultValue if the located property value
null . |
String |
getContainerProperty(String key)
Gets the property value for the given key as a String.
|
String |
getContainerProperty(String key,
String defaultValue)
Gets the property value for the given key as a String., returning the defaultValue if the located property value
is blank (
null or all characters are whitespace). |
Level |
getLogLevel()
The current log level for the Atom.
|
Long |
getLongContainerProperty(String key)
Gets the property value for the given key as a Long.
|
long |
getLongContainerProperty(String key,
long defaultValue)
Gets the property value for the given key as a Long, returning the defaultValue if the located property value
null . |
int |
getMaxNumberObjectTypes()
Returns the maximum number of object types allowed to be returned from a browse request.
|
int |
getMaxObjectTypeCookieLength()
Returns the maximum number of characters allowed in an ObjectType cookie.
|
int |
getMaxPageSize()
Returns the maximum page size recommended by the Atom.
|
AtomProxyConfig |
getProxyConfig()
Returns ProxyConfig object with access to Atom proxy properties such as proxyHost, proxyPort etc.
|
String getContainerProperty(String key)
key
- key of the desired propertynull
if not found.String getContainerProperty(String key, String defaultValue)
null
or all characters are whitespace).key
- key of the desired propertydefaultValue
- value to return if property value is blankBoolean getBooleanContainerProperty(String key)
key
- key of the desired propertynull
if not found or isn't "true" or "false".boolean getBooleanContainerProperty(String key, boolean defaultValue)
null
.key
- key of the desired propertydefaultValue
- value to return if property value is null
Long getLongContainerProperty(String key)
key
- key of the desired propertynull
if not found.NumberFormatException
- If the string cannot be parsed as a long
.
Example:
Container property : com.boomi.container.exampleKey->TestValue123 getLongContainerProperty("com.boomi.container.exampleKey") throws a NumberFormatException
long getLongContainerProperty(String key, long defaultValue)
null
.key
- key of the desired propertydefaultValue
- value to return if property value is null
AtomProxyConfig getProxyConfig()
int getMaxPageSize()
int getMaxNumberObjectTypes()
int getMaxObjectTypeCookieLength()
Level getLogLevel()