Package org.wildfly.extension.undertow
Class Server
java.lang.Object
org.wildfly.extension.undertow.Server
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<Server>,org.jboss.msc.value.Value<Server>
- Author:
- Tomaz Cerar (c) 2013 Red Hat Inc., Richard Opalka
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.wildfly.service.descriptor.UnaryServiceDescriptor<Server>Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServer(Consumer<Server> serverConsumer, Supplier<ServletContainerService> servletContainer, Supplier<UndertowService> undertowService, String name, String defaultHost) -
Method Summary
Modifier and TypeMethodDescriptiongetHosts()getName()protected io.undertow.server.HttpHandlergetRoot()getRoute()getValue()intlookupSecurePort(int unsecurePort) protected voidregisterHost(Host host) protected voidregisterListener(ListenerService listener) voidstart(org.jboss.msc.service.StartContext startContext) voidstop(org.jboss.msc.service.StopContext stopContext) protected voidunregisterHost(Host host) protected voidunregisterListener(ListenerService listener)
-
Field Details
-
SERVICE_DESCRIPTOR
public static final org.wildfly.service.descriptor.UnaryServiceDescriptor<Server> SERVICE_DESCRIPTOR
-
-
Constructor Details
-
Server
protected Server(Consumer<Server> serverConsumer, Supplier<ServletContainerService> servletContainer, Supplier<UndertowService> undertowService, String name, String defaultHost)
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext startContext) 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 stopContext) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<Server>
-
registerListener
-
unregisterListener
-
registerHost
-
unregisterHost
-
lookupSecurePort
public int lookupSecurePort(int unsecurePort) -
getServletContainer
-
getRoot
protected io.undertow.server.HttpHandler getRoot() -
getName
-
getDefaultHost
-
getHosts
-
getListeners
-
getRoute
-