Package net.solarnetwork.central.support
Class SimpleAppConfiguration
java.lang.Object
net.solarnetwork.central.support.SimpleAppConfiguration
- All Implemented Interfaces:
AppConfiguration
Basic immutable implementation of
AppConfiguration.-
Field Summary
Fields inherited from interface net.solarnetwork.central.domain.AppConfiguration
SOALRNODE_DASHBAORD_SERVICE_NAME, SOLARNDOE_DATAVIEW_SERVICE_NAME, SOLARQUERY_SERVICE_NAME, SOLARUSER_SERVICE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SimpleAppConfiguration(Map<String, String> serviceUrls) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet a mapping of named service URLs.
-
Constructor Details
-
SimpleAppConfiguration
public SimpleAppConfiguration()Default constructor. -
SimpleAppConfiguration
Constructor.- Parameters:
serviceUrls- the service URLs to expose
-
-
Method Details
-
getServiceUrls
Description copied from interface:AppConfigurationGet a mapping of named service URLs.The keys of the returned maps represent logical names for the associated URL values. The keys will be application-dependent, and should include values for well-defined application services. For example a URL to the application terms of service might be included under a key tos.
URL values are permitted to contain variables in the form
{var}that consumers of the URLs can replace with appropriate values. The variable names must be named so their intended use is obvious, for examplenodeIdfor a SolarNode ID.Some common service URL names are defined as constants on this interface. Implementations are recommended to use these keys when it makes sense, and to add any other values needed by the application.
- Specified by:
getServiceUrlsin interfaceAppConfiguration- Returns:
- named service URLs, never null
-