Class JettyServerComponent
- java.lang.Object
-
- com.adaptris.core.management.jetty.JettyServerComponent
-
- All Implemented Interfaces:
ManagementComponent
public class JettyServerComponent extends java.lang.Object implements ManagementComponent
This class can be used for configuring and starting a Jetty webserver for the adapter.You must provide the jetty config file in the bootstrap.properties file for a Jetty instance to startup.
See the Jetty Guide for more information on configuration options.For adding webapps to the server the jettyWebappBase parameter can be used.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]ATTR_BOOTSTRAP_KEYSstatic java.lang.StringATTR_JMX_ADAPTER_UIDstatic java.lang.StringATTR_JMX_SERVICE_URLstatic java.lang.StringDEFAULT_JETTY_PORTstatic java.lang.StringSERVER_ID
-
Constructor Summary
Constructors Constructor Description JettyServerComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy the management component making it require re-initialisation.voidinit(java.util.Properties properties)Initialise the management component.voidsetClassLoader(java.lang.ClassLoader classLoader)voidstart()Had to do some tricks for proper classloading.voidstop()Stop the management component.
-
-
-
Field Detail
-
DEFAULT_JETTY_PORT
public static final java.lang.String DEFAULT_JETTY_PORT
- See Also:
- Constant Field Values
-
ATTR_JMX_SERVICE_URL
public static final java.lang.String ATTR_JMX_SERVICE_URL
- See Also:
- Constant Field Values
-
ATTR_JMX_ADAPTER_UID
public static final java.lang.String ATTR_JMX_ADAPTER_UID
- See Also:
- Constant Field Values
-
SERVER_ID
public static final java.lang.String SERVER_ID
-
ATTR_BOOTSTRAP_KEYS
public static final java.lang.String[] ATTR_BOOTSTRAP_KEYS
-
-
Method Detail
-
setClassLoader
public void setClassLoader(java.lang.ClassLoader classLoader)
- Specified by:
setClassLoaderin interfaceManagementComponent
-
init
public void init(java.util.Properties properties) throws java.lang.ExceptionDescription copied from interface:ManagementComponentInitialise the management component.- Specified by:
initin interfaceManagementComponent- Parameters:
properties- configuration properties that have been built during bootstrap.- Throws:
java.lang.Exception- if initialisation fails.
-
start
public void start() throws java.lang.ExceptionHad to do some tricks for proper classloading.- Specified by:
startin interfaceManagementComponent- Throws:
java.lang.Exception
-
stop
public void stop()
Description copied from interface:ManagementComponentStop the management component.- Specified by:
stopin interfaceManagementComponent
-
destroy
public void destroy() throws java.lang.ExceptionDescription copied from interface:ManagementComponentDestroy the management component making it require re-initialisation.- Specified by:
destroyin interfaceManagementComponent- Throws:
java.lang.Exception
-
-