Class EmbeddedServerController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    public class EmbeddedServerController
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    EmbeddedServerController is responsible for starting/stopping embedded server. It is used by EmbeddedServerTestRunListener. It is intended to be used as singleton, it stores global data like embedded server instance.
    • Constructor Detail

      • EmbeddedServerController

        public EmbeddedServerController()
    • Method Detail

      • start

        public void start​(java.lang.String[] webExtensionNames)
      • stop

        public void stop()
      • beforeStart

        protected void beforeStart()
      • afterStop

        protected void afterStop()
      • getEmbeddedExtension

        public EmbeddedExtension getEmbeddedExtension​(java.lang.String extensionName)
      • createEmbeddedServer

        public EmbeddedServer createEmbeddedServer​(java.lang.String[] webExtensionNames)
      • setEmbeddedServerBuilder

        public void setEmbeddedServerBuilder​(EmbeddedServerBuilder embeddedServerBuilder)
      • setCacheSuffix

        protected void setCacheSuffix()
        Function modifies the EhCache cache suffix. This is required in order to run embedded server by running platform (the same web application is deployed twice). It may cause side effects in host platform.
      • restoreOriginalCacheSuffix

        protected void restoreOriginalCacheSuffix()
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • getWebAppHeadStatus

        public java.util.Optional<org.springframework.http.HttpStatus> getWebAppHeadStatus​(java.lang.String webExtentionName)
      • ensureWebAppsAreStarted

        public boolean ensureWebAppsAreStarted​(java.lang.String[] webExtentionNames)
      • ensureWebAppIsStarted

        public boolean ensureWebAppIsStarted​(java.lang.String webExtentionName)