Class WebServerComponent
java.lang.Object
org.apache.activemq.artemis.component.WebServerComponent
- All Implemented Interfaces:
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 Object
implements ExternalComponent, org.apache.activemq.artemis.marker.WebServerComponentMarker
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final booleanstatic final booleanstatic final booleanstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(ComponentDTO config, String artemisInstance, String artemisHome) protected org.eclipse.jetty.ee9.webapp.WebAppContextcreateWebAppContext(String url, String warFile, Path warDirectory, String virtualHost) intgetPort()Deprecated.intgetPort(int connectorIndex) org.eclipse.jetty.server.Serverbooleanvoidstart()voidstop()voidstop(boolean isShutdown) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Field Details
-
WEB_CONSOLE_DISPLAY_NAME
-
DEFAULT_SNI_HOST_CHECK_VALUE
public static final boolean DEFAULT_SNI_HOST_CHECK_VALUE- See Also:
-
DEFAULT_SNI_REQUIRED_VALUE
public static final boolean DEFAULT_SNI_REQUIRED_VALUE- See Also:
-
DEFAULT_SSL_AUTO_RELOAD_VALUE
public static final boolean DEFAULT_SSL_AUTO_RELOAD_VALUE- See Also:
-
DEFAULT_SCAN_PERIOD_VALUE
public static final int DEFAULT_SCAN_PERIOD_VALUE- See Also:
-
-
Constructor Details
-
WebServerComponent
public WebServerComponent()
-
-
Method Details
-
configure
public void configure(ComponentDTO config, String artemisInstance, String artemisHome) throws Exception - Specified by:
configurein interfaceExternalComponent- Throws:
Exception
-
start
- Specified by:
startin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
Exception
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent
-
getPort
Deprecated.Returns started server's port number; useful if it was specified as 0 (to use a random port).- 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
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.artemis.core.server.ServiceComponent- Throws:
Exception
-
getWebContextData
-
getWebServer
public org.eclipse.jetty.server.Server getWebServer()
-