public class SimpleAtomConfig extends Object implements AtomConfig
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_NUMBER_OBJECT_TYPES |
static int |
DEFAULT_MAX_OBJECT_TYPE_COOKIE_LENGTH |
static int |
DEFAULT_MAX_PAGE_SIZE |
| Constructor and Description |
|---|
SimpleAtomConfig() |
SimpleAtomConfig(int maxPageSize,
int maxNumObjects,
int maxCookieLength) |
| 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.
|
void |
setProxyConfig(AtomProxyConfig proxyConfig)
Setter method for AtomProxyConfig to overwrite the default implementation of SimpleAtomProxyConfig instance if
needed.
|
SimpleAtomConfig |
withContainerProperty(String propertyKey,
String propertyValue)
Builder method to set any container properties.
|
public static final int DEFAULT_MAX_PAGE_SIZE
public static final int DEFAULT_MAX_NUMBER_OBJECT_TYPES
public static final int DEFAULT_MAX_OBJECT_TYPE_COOKIE_LENGTH
public SimpleAtomConfig()
public SimpleAtomConfig(int maxPageSize,
int maxNumObjects,
int maxCookieLength)
public SimpleAtomConfig withContainerProperty(String propertyKey, String propertyValue)
HashMap with key value pairspropertyKey - the key of property to be storedpropertyValue - the associated value of the key to be storedpublic void setProxyConfig(AtomProxyConfig proxyConfig)
proxyConfig - Atom proxy configuration information which may be of use to a developer. Connector devs can
use the SimpleAtomProxyConfig builder to create a new instance and pass it in as an argument here.public String getContainerProperty(String key)
AtomConfiggetContainerProperty in interface AtomConfigkey - key of the desired propertynull if not found.public String getContainerProperty(String key, String defaultValue)
AtomConfignull or all characters are whitespace).getContainerProperty in interface AtomConfigkey - key of the desired propertydefaultValue - value to return if property value is blankpublic Boolean getBooleanContainerProperty(String key)
AtomConfiggetBooleanContainerProperty in interface AtomConfigkey - key of the desired propertynull if not found or isn't "true" or "false".public boolean getBooleanContainerProperty(String key, boolean defaultValue)
AtomConfignull.getBooleanContainerProperty in interface AtomConfigkey - key of the desired propertydefaultValue - value to return if property value is nullpublic Long getLongContainerProperty(String key)
AtomConfiggetLongContainerProperty in interface AtomConfigkey - key of the desired propertynull if not found.public long getLongContainerProperty(String key, long defaultValue)
AtomConfignull.getLongContainerProperty in interface AtomConfigkey - key of the desired propertydefaultValue - value to return if property value is nullpublic AtomProxyConfig getProxyConfig()
AtomConfiggetProxyConfig in interface AtomConfigpublic int getMaxPageSize()
AtomConfiggetMaxPageSize in interface AtomConfigpublic int getMaxNumberObjectTypes()
AtomConfiggetMaxNumberObjectTypes in interface AtomConfigpublic int getMaxObjectTypeCookieLength()
AtomConfiggetMaxObjectTypeCookieLength in interface AtomConfigpublic Level getLogLevel()
AtomConfiggetLogLevel in interface AtomConfig