Class EmbeddedServerController

java.lang.Object
de.hybris.platform.webservicescommons.testsupport.server.EmbeddedServerController
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class EmbeddedServerController extends 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 Details

    • EmbeddedServerController

      public EmbeddedServerController()
  • Method Details

    • start

      public void start(String[] webExtensionNames)
    • stop

      public void stop()
    • beforeStart

      protected void beforeStart()
    • afterStop

      protected void afterStop()
    • getEmbeddedExtension

      public EmbeddedExtension getEmbeddedExtension(String extensionName)
    • createEmbeddedServer

      public EmbeddedServer createEmbeddedServer(String[] webExtensionNames)
    • getEmbeddedServerBuilder

      public EmbeddedServerBuilder getEmbeddedServerBuilder()
    • 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 Optional<org.springframework.http.HttpStatus> getWebAppHeadStatus(String webExtentionName)
    • ensureWebAppsAreStarted

      public boolean ensureWebAppsAreStarted(String[] webExtentionNames)
    • ensureWebAppIsStarted

      public boolean ensureWebAppIsStarted(String webExtentionName)