Package org.wildfly.extension.undertow
Class UndertowService
java.lang.Object
org.wildfly.extension.undertow.UndertowService
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<UndertowService>,org.jboss.msc.value.Value<UndertowService>
public class UndertowService
extends Object
implements org.jboss.msc.service.Service<UndertowService>
- Author:
- Tomaz Cerar (c) 2013 Red Hat Inc., Stuart Douglas, Richard Opalka
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.jboss.msc.service.ServiceNameservice name under which default host of default server is bound.static final org.jboss.msc.service.ServiceNameservice name under which default server is bound.static final org.jboss.msc.service.ServiceNamestatic final org.jboss.msc.service.ServiceNameDeprecated, for removal: This API element is subject to removal in a future version.static final org.jboss.msc.service.ServiceNameDeprecated, for removal: This API element is subject to removal in a future version.Replaced by capability referenceHostDefinition.HOST_CAPABILITY.static org.wildfly.service.descriptor.NullaryServiceDescriptor<UndertowService>static final org.jboss.msc.service.ServiceNameDeprecated, for removal: This API element is subject to removal in a future version.Replaced by capability referenceServletContainerDefinition.SERVLET_CONTAINER_CAPABILITY.static final org.jboss.msc.service.ServiceNameDeprecated, for removal: This API element is subject to removal in a future version.Replaced by capability referenceUndertowRootDefinition.UNDERTOW_CAPABILITY.static final org.jboss.msc.service.ServiceNameFields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUndertowService(Consumer<UndertowService> serviceConsumer, String defaultContainer, String defaultServer, String defaultVirtualHost, String instanceId, boolean obfuscateSessionRoute, boolean statisticsEnabled) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jboss.msc.service.ServiceNameaccessLogServiceName(String server, String virtualHost) Deprecated, for removal: This API element is subject to removal in a future version.static org.jboss.msc.service.ServiceNameconsoleRedirectServiceName(String server, String virtualHost) static org.jboss.msc.service.ServiceNamedeploymentServiceName(String serverName, String virtualHost, String contextPath) Deprecated, for removal: This API element is subject to removal in a future version.static org.jboss.msc.service.ServiceNamedeploymentServiceName(org.jboss.msc.service.ServiceName deploymentServiceName) static org.jboss.msc.service.ServiceNamefilterRefName(String server, String virtualHost, String filterName) static org.jboss.msc.service.ServiceNamefilterRefName(String server, String virtualHost, String locationName, String filterName) protected voidfireEvent(EventInvoker invoker) static org.jboss.msc.service.ServiceNamegetFilterRefServiceName(org.jboss.as.controller.PathAddress address, String name) getValue()booleanbooleanstatic org.jboss.msc.service.ServiceNamelistenerName(String listenerName) Deprecated, for removal: This API element is subject to removal in a future version.static org.jboss.msc.service.ServiceNamelocationServiceName(String server, String virtualHost, String locationName) Deprecated, for removal: This API element is subject to removal in a future version.voidregisterListener(UndertowEventListener listener) Registers custom Event listener to serverprotected voidregisterServer(Server server) voidregisterStatisticsListener(Consumer<Boolean> listener) voidsetStatisticsEnabled(boolean statisticsEnabled) voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context) voidunregisterListener(UndertowEventListener listener) protected voidunregisterServer(Server server) voidunregisterStatisticsListener(Consumer<Boolean> listener) static org.jboss.msc.service.ServiceNamevirtualHostName(String server, String virtualHost) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
SERVICE_DESCRIPTOR
public static org.wildfly.service.descriptor.NullaryServiceDescriptor<UndertowService> SERVICE_DESCRIPTOR -
UNDERTOW
Deprecated, for removal: This API element is subject to removal in a future version.Replaced by capability referenceUndertowRootDefinition.UNDERTOW_CAPABILITY. -
SERVLET_CONTAINER
@Deprecated(forRemoval=true) public static final org.jboss.msc.service.ServiceName SERVLET_CONTAINERDeprecated, for removal: This API element is subject to removal in a future version.Replaced by capability referenceServletContainerDefinition.SERVLET_CONTAINER_CAPABILITY. -
SERVER
Deprecated, for removal: This API element is subject to removal in a future version.Replaced by capability referenceHostDefinition.HOST_CAPABILITY. -
DEFAULT_SERVER
public static final org.jboss.msc.service.ServiceName DEFAULT_SERVERservice name under which default server is bound. -
DEFAULT_HOST
public static final org.jboss.msc.service.ServiceName DEFAULT_HOSTservice name under which default host of default server is bound. -
UNDERTOW_DEPLOYMENT
public static final org.jboss.msc.service.ServiceName UNDERTOW_DEPLOYMENT -
HANDLER
Deprecated, for removal: This API element is subject to removal in a future version.Replaced by capability referenceCapabilities.CAPABILITY_HANDLER. -
FILTER
public static final org.jboss.msc.service.ServiceName FILTER
-
-
Constructor Details
-
UndertowService
-
-
Method Details
-
deploymentServiceName
public static org.jboss.msc.service.ServiceName deploymentServiceName(org.jboss.msc.service.ServiceName deploymentServiceName) -
deploymentServiceName
@Deprecated(forRemoval=true) public static org.jboss.msc.service.ServiceName deploymentServiceName(String serverName, String virtualHost, String contextPath) Deprecated, for removal: This API element is subject to removal in a future version.The old deployment unit service name. This is still registered as an alias, however {deploymentServiceName(ServiceName)} should be used instead.- Parameters:
serverName- The server namevirtualHost- The virtual hostcontextPath- The context path- Returns:
- The legacy deployment service alias
-
virtualHostName
@Deprecated(forRemoval=true) public static org.jboss.msc.service.ServiceName virtualHostName(String server, String virtualHost) Deprecated, for removal: This API element is subject to removal in a future version. -
locationServiceName
@Deprecated(forRemoval=true) public static org.jboss.msc.service.ServiceName locationServiceName(String server, String virtualHost, String locationName) Deprecated, for removal: This API element is subject to removal in a future version. -
accessLogServiceName
@Deprecated(forRemoval=true) public static org.jboss.msc.service.ServiceName accessLogServiceName(String server, String virtualHost) Deprecated, for removal: This API element is subject to removal in a future version. -
consoleRedirectServiceName
-
filterRefName
-
filterRefName
-
getFilterRefServiceName
public static org.jboss.msc.service.ServiceName getFilterRefServiceName(org.jboss.as.controller.PathAddress address, String name) -
listenerName
@Deprecated(forRemoval=true) public static org.jboss.msc.service.ServiceName listenerName(String listenerName) Deprecated, for removal: This API element is subject to removal in a future version. -
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<UndertowService>- Throws:
IllegalStateExceptionIllegalArgumentException
-
registerServer
-
unregisterServer
-
getDefaultContainer
-
getDefaultServer
-
getDefaultVirtualHost
-
getServers
-
getInstanceId
-
isObfuscateSessionRoute
public boolean isObfuscateSessionRoute() -
isStatisticsEnabled
public boolean isStatisticsEnabled() -
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled) -
registerStatisticsListener
-
unregisterStatisticsListener
-
registerListener
Registers custom Event listener to server- Parameters:
listener- event listener to register
-
unregisterListener
-
fireEvent
-
Capabilities.CAPABILITY_HANDLER.