Interface IEmbeddedJettyConfigurationStore
-
public interface IEmbeddedJettyConfigurationStore
Stores and loads embedded Jetty server configuration. Configuration of embedded Jetty server consist of map:- Mobile application name
- Mobile application location
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addEmbeddedJettyConfigurationChangeListener(IEmbeddedJettyConfigurationChangeListener listener)
Add an embedded Jetty configuration change listener to the store.String
getConfigurationLocation()
Get store location of the embedded Jetty server configuration.String
getDefaultPublicationLocation()
Get store default location of the embedded Jetty server publications.int
getPort()
Get the port to start embedded Jetty server on.Map<String,Path>
loadConfiguration()
Load saved configuration from the stoe.void
removeEmbeddedJettyConfigurationChangeListener(IEmbeddedJettyConfigurationChangeListener listener)
Remove the embedded Jetty configuration change listener from the store.void
saveConfiguration(Map<String,Path> publications)
Save the given configuration in the store.void
setConfigurationLocation(String location)
Set store location of the embedded Jetty server configuration.void
setDefaultPublicationLocation(String location)
Set store default location of the embedded Jetty server publications.void
setPort(int port)
Set the port to start embedded Jetty server on.
-
-
-
Method Detail
-
saveConfiguration
void saveConfiguration(Map<String,Path> publications)
Save the given configuration in the store.- Parameters:
publications
- the publications configuration to store, cannot benull
-
loadConfiguration
Map<String,Path> loadConfiguration()
Load saved configuration from the stoe. Can returnnull
if none was stored.- Returns:
- saved configuration or be
null
if none was stored
-
getConfigurationLocation
String getConfigurationLocation()
Get store location of the embedded Jetty server configuration. Store configuration location may contain Eclipse variables as the part of the path, such as: ${eclipse_home}, ${workspace_loc}, etc.- Returns:
- the store location of the embedded Jetty server configuration, never
null
-
setConfigurationLocation
void setConfigurationLocation(String location)
Set store location of the embedded Jetty server configuration. Store configuration location may contain Eclipse variables as the part of the path, such as: ${eclipse_home}, ${workspace_loc}, etc.- Parameters:
location
- the store location of the embedded Jetty server configuration, cannot benull
-
getDefaultPublicationLocation
String getDefaultPublicationLocation()
Get store default location of the embedded Jetty server publications. Store default publication location may contain Eclipse variables as the part of the path, such as: ${eclipse_home}, ${workspace_loc}, etc.- Returns:
- the store default location of the embedded Jetty server publication, never
null
-
setDefaultPublicationLocation
void setDefaultPublicationLocation(String location)
Set store default location of the embedded Jetty server publications. Store default publication location may contain Eclipse variables as the part of the path, such as: ${eclipse_home}, ${workspace_loc}, etc.- Parameters:
location
- the store default location of the embedded Jetty server publication, cannot benull
-
getPort
int getPort()
Get the port to start embedded Jetty server on.- Returns:
- the port to start embedded Jetty server on
-
setPort
void setPort(int port)
Set the port to start embedded Jetty server on.- Parameters:
port
- the port to start embedded Jetty server on
-
addEmbeddedJettyConfigurationChangeListener
void addEmbeddedJettyConfigurationChangeListener(IEmbeddedJettyConfigurationChangeListener listener)
Add an embedded Jetty configuration change listener to the store. Listener will be notified about Jetty configuration changes.Causes no effect if given listener is already registered.
- Parameters:
listener
- the listener to add, cannot benull
-
removeEmbeddedJettyConfigurationChangeListener
void removeEmbeddedJettyConfigurationChangeListener(IEmbeddedJettyConfigurationChangeListener listener)
Remove the embedded Jetty configuration change listener from the store.- Parameters:
listener
- the listener to remove, cannot benull
-
-