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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidprotected voidcreateEmbeddedServer(String[] webExtensionNames) booleanensureWebAppIsStarted(String webExtentionName) booleanensureWebAppsAreStarted(String[] webExtentionNames) getEmbeddedExtension(String extensionName) Optional<org.springframework.http.HttpStatus>getWebAppHeadStatus(String webExtentionName) protected voidprotected voidFunction modifies the EhCache cache suffix.voidsetEmbeddedServerBuilder(EmbeddedServerBuilder embeddedServerBuilder) voidvoidstop()
-
Constructor Details
-
EmbeddedServerController
public EmbeddedServerController()
-
-
Method Details
-
start
-
stop
public void stop() -
beforeStart
protected void beforeStart() -
afterStop
protected void afterStop() -
getEmbeddedExtension
-
createEmbeddedServer
-
getEmbeddedServerBuilder
-
setEmbeddedServerBuilder
-
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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getWebAppHeadStatus
-
ensureWebAppsAreStarted
-
ensureWebAppIsStarted
-