public interface ISystemProperties
Modifier and Type | Method and Description |
---|---|
String |
get(String key)
Returns system properties.
|
String |
getOrDefault(String key,
String defaultValue)
Returns system property or the default value if not set.
|
Collection |
getServerList()
Returns server list.
|
Collection |
getServiceAllURLs(String serviceName)
Returns server all urls.
|
URL |
getServiceURL(String serviceName,
String protocol,
String hostname,
int port,
String uri)
Returns the URL of the specified service on the specified host.
|
void |
initializeProperties(Properties properties)
Initializes the properties map.
|
void |
initializeProperties(String propertyName,
String propertyValue)
Initializes the properties map.
|
String getOrDefault(String key, String defaultValue)
key
- the system property to retrieve.defaultValue
- the default value if the property is not set.Collection getServerList() throws Exception
Exception
- if server list cannot be returned.Collection getServiceAllURLs(String serviceName) throws Exception
Exception
- if server list cannot be returned.URL getServiceURL(String serviceName, String protocol, String hostname, int port, String uri) throws Exception
serviceName
- The name of the service.protocol
- The service protocol.hostname
- The service host name.port
- The service listening port.uri
- The service deployment URI.Exception
- if the URL could not be found.void initializeProperties(Properties properties)
properties
- Map of new properties.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.