Package org.jboss.as.server.mgmt
Class UndertowHttpManagementService
- java.lang.Object
-
- org.jboss.as.server.mgmt.UndertowHttpManagementService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<HttpManagement>,org.jboss.msc.value.Value<HttpManagement>
public class UndertowHttpManagementService extends Object implements org.jboss.msc.service.Service<HttpManagement>
- Author:
- Kabir Khan, Richard Opalka
-
-
Field Summary
Fields Modifier and Type Field Description static RuntimeCapability<Void>EXTENSIBLE_HTTP_MANAGEMENT_CAPABILITYstatic StringHTTP_MANAGEMENTstatic org.jboss.msc.service.ServiceNameHTTP_UPGRADE_SERVICE_NAMEstatic StringHTTPS_MANAGEMENTstatic org.jboss.msc.service.ServiceNameHTTPS_UPGRADE_SERVICE_NAMEstatic StringJBOSS_REMOTINGstatic StringMANAGEMENT_ENDPOINTstatic StringSERVER_NAMEstatic org.jboss.msc.service.ServiceNameSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description UndertowHttpManagementService(Consumer<HttpManagement> httpManagementConsumer, Supplier<io.undertow.server.ListenerRegistry> listenerRegistrySupplier, Supplier<ModelController> modelControllerSupplier, Supplier<SocketBinding> socketBindingSupplier, Supplier<SocketBinding> secureSocketBindingSupplier, Supplier<SocketBindingManager> socketBindingManagerSupplier, Supplier<NetworkInterfaceBinding> interfaceBindingSupplier, Supplier<NetworkInterfaceBinding> secureInterfaceBindingSupplier, Supplier<ProcessStateNotifier> processStateNotifierSupplier, Supplier<ManagementHttpRequestProcessor> requestProcessorSupplier, Supplier<org.xnio.XnioWorker> workerSupplier, Supplier<Executor> executorSupplier, Supplier<org.wildfly.security.auth.server.HttpAuthenticationFactory> httpAuthFactorySupplier, Supplier<SSLContext> sslContextSupplier, Integer port, Integer securePort, Collection<String> allowedOrigins, ConsoleMode consoleMode, String consoleSlot, Map<String,List<HttpInterfaceCommonPolicy.Header>> constantHeaders, Supplier<ConsoleAvailability> consoleAvailabilitySupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpManagementgetValue()voidstart(org.jboss.msc.service.StartContext context)Starts the service.voidstop(org.jboss.msc.service.StopContext context)Stops the service.
-
-
-
Field Detail
-
EXTENSIBLE_HTTP_MANAGEMENT_CAPABILITY
public static final RuntimeCapability<Void> EXTENSIBLE_HTTP_MANAGEMENT_CAPABILITY
-
SERVICE_NAME
public static final org.jboss.msc.service.ServiceName SERVICE_NAME
-
SERVER_NAME
public static final String SERVER_NAME
- See Also:
- Constant Field Values
-
HTTP_MANAGEMENT
public static final String HTTP_MANAGEMENT
- See Also:
- Constant Field Values
-
HTTPS_MANAGEMENT
public static final String HTTPS_MANAGEMENT
- See Also:
- Constant Field Values
-
HTTP_UPGRADE_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName HTTP_UPGRADE_SERVICE_NAME
-
HTTPS_UPGRADE_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName HTTPS_UPGRADE_SERVICE_NAME
-
JBOSS_REMOTING
public static final String JBOSS_REMOTING
- See Also:
- Constant Field Values
-
MANAGEMENT_ENDPOINT
public static final String MANAGEMENT_ENDPOINT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UndertowHttpManagementService
public UndertowHttpManagementService(Consumer<HttpManagement> httpManagementConsumer, Supplier<io.undertow.server.ListenerRegistry> listenerRegistrySupplier, Supplier<ModelController> modelControllerSupplier, Supplier<SocketBinding> socketBindingSupplier, Supplier<SocketBinding> secureSocketBindingSupplier, Supplier<SocketBindingManager> socketBindingManagerSupplier, Supplier<NetworkInterfaceBinding> interfaceBindingSupplier, Supplier<NetworkInterfaceBinding> secureInterfaceBindingSupplier, Supplier<ProcessStateNotifier> processStateNotifierSupplier, Supplier<ManagementHttpRequestProcessor> requestProcessorSupplier, Supplier<org.xnio.XnioWorker> workerSupplier, Supplier<Executor> executorSupplier, Supplier<org.wildfly.security.auth.server.HttpAuthenticationFactory> httpAuthFactorySupplier, Supplier<SSLContext> sslContextSupplier, Integer port, Integer securePort, Collection<String> allowedOrigins, ConsoleMode consoleMode, String consoleSlot, Map<String,List<HttpInterfaceCommonPolicy.Header>> constantHeaders, Supplier<ConsoleAvailability> consoleAvailabilitySupplier)
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartExceptionStarts the service.- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<HttpManagement>- Parameters:
context- The start context- Throws:
org.jboss.msc.service.StartException- If any errors occur
-
stop
public void stop(org.jboss.msc.service.StopContext context)
Stops the service.- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<HttpManagement>- Parameters:
context- The stop context
-
getValue
public HttpManagement getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<HttpManagement>- Throws:
IllegalStateExceptionIllegalArgumentException
-
-