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>
public class Server extends Object implements org.jboss.msc.service.Service<Server>
- Author:
- Tomaz Cerar (c) 2013 Red Hat Inc., Richard Opalka
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServer(Consumer<Server> serverConsumer, Supplier<ServletContainerService> servletContainer, Supplier<UndertowService> undertowService, String name, String defaultHost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultHost()Set<Host>getHosts()List<UndertowListener>getListeners()StringgetName()protected io.undertow.server.HttpHandlergetRoot()StringgetRoute()ServletContainerServicegetServletContainer()ServergetValue()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)
-
-
-
Constructor Detail
-
Server
protected Server(Consumer<Server> serverConsumer, Supplier<ServletContainerService> servletContainer, Supplier<UndertowService> undertowService, String name, String defaultHost)
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<Server>- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<Server>
-
getValue
public Server getValue()
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<Server>
-
registerListener
protected void registerListener(ListenerService listener)
-
unregisterListener
protected void unregisterListener(ListenerService listener)
-
registerHost
protected void registerHost(Host host)
-
unregisterHost
protected void unregisterHost(Host host)
-
lookupSecurePort
public int lookupSecurePort(int unsecurePort)
-
getServletContainer
public ServletContainerService getServletContainer()
-
getRoot
protected io.undertow.server.HttpHandler getRoot()
-
getName
public String getName()
-
getDefaultHost
public String getDefaultHost()
-
getListeners
public List<UndertowListener> getListeners()
-
getRoute
public String getRoute()
-
-