Class WebServerComponent
- java.lang.Object
-
- org.apache.activemq.artemis.component.WebServerComponent
-
- All Implemented Interfaces:
org.apache.activemq.artemis.components.ExternalComponent,org.apache.activemq.artemis.core.server.ActiveMQComponent,org.apache.activemq.artemis.core.server.ServiceComponent,org.apache.activemq.artemis.marker.WebServerComponentMarker
public class WebServerComponent extends java.lang.Object implements org.apache.activemq.artemis.components.ExternalComponent, org.apache.activemq.artemis.marker.WebServerComponentMarker
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDIR_ALLOWEDstatic java.lang.StringWEB_CONSOLE_DISPLAY_NAME
-
Constructor Summary
Constructors Constructor Description WebServerComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcleanupWebTemporaryFiles(java.util.List<org.apache.activemq.artemis.api.core.Pair<org.eclipse.jetty.webapp.WebAppContext,java.lang.String>> webContextData)voidconfigure(org.apache.activemq.artemis.dto.ComponentDTO config, java.lang.String artemisInstance, java.lang.String artemisHome)protected org.eclipse.jetty.webapp.WebAppContextcreateWebAppContext(java.lang.String url, java.lang.String warFile, java.nio.file.Path warDirectory, java.lang.String virtualHost)intgetPort()Deprecated.intgetPort(int connectorIndex)java.util.List<org.apache.activemq.artemis.api.core.Pair<org.eclipse.jetty.webapp.WebAppContext,java.lang.String>>getWebContextData()booleanisStarted()voidstart()voidstop()voidstop(boolean isShutdown)
-
-
-
Field Detail
-
DIR_ALLOWED
public static final java.lang.String DIR_ALLOWED
- See Also:
- Constant Field Values
-
WEB_CONSOLE_DISPLAY_NAME
public static final java.lang.String WEB_CONSOLE_DISPLAY_NAME
-
-
Method Detail
-
configure
public void configure(org.apache.activemq.artemis.dto.ComponentDTO config, java.lang.String artemisInstance, java.lang.String artemisHome) throws java.lang.Exception- Specified by:
configurein interfaceorg.apache.activemq.artemis.components.ExternalComponent- Throws:
java.lang.Exception
-
start
public void start() throws java.lang.Exception- Specified by:
startin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
java.lang.Exception
-
cleanupWebTemporaryFiles
public void cleanupWebTemporaryFiles(java.util.List<org.apache.activemq.artemis.api.core.Pair<org.eclipse.jetty.webapp.WebAppContext,java.lang.String>> webContextData) throws java.lang.Exception- Throws:
java.lang.Exception
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent
-
getPort
@Deprecated public int getPort()
Deprecated.- Returns:
- started server's port number; useful if it was specified as 0 (to use a random port)
-
getPort
public int getPort(int connectorIndex)
-
createWebAppContext
protected org.eclipse.jetty.webapp.WebAppContext createWebAppContext(java.lang.String url, java.lang.String warFile, java.nio.file.Path warDirectory, java.lang.String virtualHost)
-
stop
public void stop() throws java.lang.Exception- Specified by:
stopin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
java.lang.Exception
-
stop
public void stop(boolean isShutdown) throws java.lang.Exception- Specified by:
stopin interfaceorg.apache.activemq.artemis.core.server.ServiceComponent- Throws:
java.lang.Exception
-
getWebContextData
public java.util.List<org.apache.activemq.artemis.api.core.Pair<org.eclipse.jetty.webapp.WebAppContext,java.lang.String>> getWebContextData()
-
-