Class ClientPropertiesImpl
java.lang.Object
com.atlassian.crowd.service.client.AbstractClientProperties
com.atlassian.crowd.service.client.ClientPropertiesImpl
- All Implemented Interfaces:
ClientProperties
This bean is a container for the application's crowd.properties.
-
Field Summary
Fields inherited from class com.atlassian.crowd.service.client.AbstractClientProperties
applicationAuthenticationContext, applicationAuthenticationURL, applicationName, applicationPassword, authenticationMethod, baseURL, cookieTokenKey, httpMaxConnections, httpProxyHost, httpProxyPassword, httpProxyPort, httpProxyUsername, httpTimeout, sessionLastValidation, sessionTokenKey, sessionValidationInterval, socketTimeout, ssoCookieDomainName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
loadAndLogPropertyString
(Properties properties, String propertyName) loadPropertyString
(Properties properties, String propertyName) static ClientPropertiesImpl
newInstanceFromProperties
(Properties properties) static ClientPropertiesImpl
newInstanceFromResourceLocator
(ResourceLocator resourceLocator) void
updateProperties
(Properties properties) Updates all the client properties with new vew values, which are read from the properties passed as argument.Methods inherited from class com.atlassian.crowd.service.client.AbstractClientProperties
getApplicationAuthenticationContext, getApplicationAuthenticationURL, getApplicationName, getApplicationPassword, getAuthenticationMethod, getBaseURL, getCookieTokenKey, getCookieTokenKey, getHttpMaxConnections, getHttpProxyHost, getHttpProxyPassword, getHttpProxyPort, getHttpProxyUsername, getHttpTimeout, getSessionLastValidation, getSessionTokenKey, getSessionValidationInterval, getSocketTimeout, getSSOCookieDomainName, toString
-
Constructor Details
-
ClientPropertiesImpl
protected ClientPropertiesImpl()
-
-
Method Details
-
updateProperties
Updates all the client properties with new vew values, which are read from the properties passed as argument. All the properties are updated, not just the ones passed. The values are taken first from the system property, if exists, then from the environment property, if exists, and then from the passed properties. If none of those sources yields a value, then the value is set to null (for Strings) or 0L (for longs).- Parameters:
properties
- properties to update from, unless overridden by system properties or environment variables
-
loadPropertyString
-
loadAndLogPropertyString
-
newInstanceFromResourceLocator
-
newInstanceFromProperties
-