Class 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 Detail

      • WEB_CONSOLE_DISPLAY_NAME

        public static final String WEB_CONSOLE_DISPLAY_NAME
      • DEFAULT_SNI_HOST_CHECK_VALUE

        public static final boolean DEFAULT_SNI_HOST_CHECK_VALUE
        See Also:
        Constant Field Values
      • DEFAULT_SNI_REQUIRED_VALUE

        public static final boolean DEFAULT_SNI_REQUIRED_VALUE
        See Also:
        Constant Field Values
      • DEFAULT_SSL_AUTO_RELOAD_VALUE

        public static final boolean DEFAULT_SSL_AUTO_RELOAD_VALUE
        See Also:
        Constant Field Values
      • DEFAULT_SCAN_PERIOD_VALUE

        public static final int DEFAULT_SCAN_PERIOD_VALUE
        See Also:
        Constant Field Values
    • Constructor Detail

      • WebServerComponent

        public WebServerComponent()
    • Method Detail

      • start

        public void start()
                   throws Exception
        Specified by:
        start in interface org.apache.activemq.artemis.core.server.ActiveMQComponent
        Throws:
        Exception
      • cleanupWebTemporaryFiles

        public void cleanupWebTemporaryFiles​(List<Pair<org.eclipse.jetty.webapp.WebAppContext,​String>> webContextData)
                                      throws Exception
        Throws:
        Exception
      • isStarted

        public boolean isStarted()
        Specified by:
        isStarted in interface org.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​(String url,
                                                                             String warFile,
                                                                             Path warDirectory,
                                                                             String virtualHost)
      • stop

        public void stop()
                  throws Exception
        Specified by:
        stop in interface org.apache.activemq.artemis.core.server.ActiveMQComponent
        Throws:
        Exception
      • stop

        public void stop​(boolean isShutdown)
                  throws Exception
        Specified by:
        stop in interface org.apache.activemq.artemis.core.server.ServiceComponent
        Throws:
        Exception
      • getWebContextData

        public List<Pair<org.eclipse.jetty.webapp.WebAppContext,​String>> getWebContextData()
      • getWebServer

        public org.eclipse.jetty.server.Server getWebServer()