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
    The store allows to add and remove configuration change listeners.
    • Method Detail

      • saveConfiguration

        void saveConfiguration​(Map<String,​Path> publications)
        Save the given configuration in the store.
        Parameters:
        publications - the publications configuration to store, cannot be null
      • loadConfiguration

        Map<String,​Path> loadConfiguration()
        Load saved configuration from the stoe. Can return null 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 be null
      • 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 be null
      • 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 be null
      • removeEmbeddedJettyConfigurationChangeListener

        void removeEmbeddedJettyConfigurationChangeListener​(IEmbeddedJettyConfigurationChangeListener listener)
        Remove the embedded Jetty configuration change listener from the store.
        Parameters:
        listener - the listener to remove, cannot be null