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 protected
Server(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 String
getDefaultHost()
Set<Host>
getHosts()
List<UndertowListener>
getListeners()
String
getName()
protected io.undertow.server.HttpHandler
getRoot()
String
getRoute()
ServletContainerService
getServletContainer()
Server
getValue()
int
lookupSecurePort(int unsecurePort)
protected void
registerHost(Host host)
protected void
registerListener(ListenerService listener)
void
start(org.jboss.msc.service.StartContext startContext)
void
stop(org.jboss.msc.service.StopContext stopContext)
protected void
unregisterHost(Host host)
protected void
unregisterListener(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:
start
in interfaceorg.jboss.msc.Service
- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext)
- Specified by:
stop
in interfaceorg.jboss.msc.Service
-
getValue
public Server getValue()
- Specified by:
getValue
in 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()
-
-