Class WebServerManagerImpl
java.lang.Object
ru.cg.webbpm.studio.subsystems.webserver.impl.WebServerManagerImpl
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,ServerStateListener
,WebServerManager
@Component
public class WebServerManagerImpl
extends Object
implements WebServerManager, org.springframework.beans.factory.DisposableBean, ServerStateListener
- Author:
- Flyur Karimov
-
Constructor Summary
ConstructorsConstructorDescriptionWebServerManagerImpl
(ExecutableServer executableServer, Alerts alerts, Application application) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDeployedWebApp
(String context, Path pathToWebApp) void
addStaticContent
(String context, Path staticContentLocation) void
deployWebApp
(String context, Path pathToWebApp) void
destroy()
int
getPort()
boolean
isContextDeployed
(String context) void
removeStaticContent
(String context) void
removeWebApp
(String context) void
void
void
start()
void
-
Constructor Details
-
WebServerManagerImpl
@Autowired public WebServerManagerImpl(ExecutableServer executableServer, Alerts alerts, Application application)
-
-
Method Details
-
start
@PostConstruct public void start() -
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
getBaseUrl
- Specified by:
getBaseUrl
in interfaceWebServerManager
-
getServerBaseDir
- Specified by:
getServerBaseDir
in interfaceWebServerManager
-
addDeployedWebApp
- Specified by:
addDeployedWebApp
in interfaceWebServerManager
-
deployWebApp
- Specified by:
deployWebApp
in interfaceWebServerManager
- Throws:
ServerOperationException
-
addStaticContent
- Specified by:
addStaticContent
in interfaceWebServerManager
-
removeStaticContent
- Specified by:
removeStaticContent
in interfaceWebServerManager
-
updateStaticContent
public void updateStaticContent()- Specified by:
updateStaticContent
in interfaceWebServerManager
-
isContextDeployed
- Specified by:
isContextDeployed
in interfaceWebServerManager
-
removeWebApp
- Specified by:
removeWebApp
in interfaceWebServerManager
-
getPort
public int getPort()- Specified by:
getPort
in interfaceWebServerManager
-
serverFullyStarted
public void serverFullyStarted()- Specified by:
serverFullyStarted
in interfaceServerStateListener
-
serverStopped
public void serverStopped()- Specified by:
serverStopped
in interfaceServerStateListener
-