Class WebServerComponent
- java.lang.Object
-
- org.apache.activemq.artemis.component.WebServerComponent
-
- All Implemented Interfaces:
ExternalComponent,ActiveMQComponent,ServiceComponent,WebServerComponentMarker
public class WebServerComponent extends Object implements ExternalComponent, WebServerComponentMarker
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_SNI_HOST_CHECK_VALUEstatic booleanDEFAULT_SNI_REQUIRED_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()booleanisStarted()voidstart()voidstop()voidstop(boolean isShutdown)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
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
-
-
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 interfaceActiveMQComponent- 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 interfaceActiveMQComponent
-
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 interfaceActiveMQComponent- Throws:
Exception
-
stop
public void stop(boolean isShutdown) throws Exception- Specified by:
stopin interfaceServiceComponent- Throws:
Exception
-
-