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
Fields Modifier and Type Field Description static intDEFAULT_SCAN_PERIOD_VALUEstatic booleanDEFAULT_SNI_HOST_CHECK_VALUEstatic booleanDEFAULT_SNI_REQUIRED_VALUEstatic booleanDEFAULT_SSL_AUTO_RELOAD_VALUEstatic StringDIR_ALLOWEDstatic 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(List<Pair<org.eclipse.jetty.webapp.WebAppContext,String>> webContextData)voidconfigure(ComponentDTO config, String artemisInstance, String artemisHome)protected org.eclipse.jetty.webapp.WebAppContextcreateWebAppContext(String url, String warFile, Path warDirectory, String virtualHost)intgetPort()Deprecated.intgetPort(int connectorIndex)List<Pair<org.eclipse.jetty.webapp.WebAppContext,String>>getWebContextData()org.eclipse.jetty.server.ServergetWebServer()booleanisStarted()voidstart()voidstop()voidstop(boolean isShutdown)
-
-
-
Field Detail
-
DIR_ALLOWED
public static final String DIR_ALLOWED
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
configure
public void configure(ComponentDTO config, String artemisInstance, String artemisHome) throws Exception
- Specified by:
configurein interfaceExternalComponent- Throws:
Exception
-
start
public void start() throws Exception- Specified by:
startin interfaceorg.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:
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(String url, String warFile, Path warDirectory, String virtualHost)
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
Exception
-
stop
public void stop(boolean isShutdown) throws Exception- Specified by:
stopin interfaceorg.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()
-
-