public class Server extends Object implements org.jboss.msc.service.Service<Server>
| Modifier | Constructor and Description |
|---|---|
protected |
Server(Consumer<Server> serverConsumer,
Supplier<ServletContainerService> servletContainer,
Supplier<UndertowService> undertowService,
String name,
String defaultHost) |
| Modifier and Type | Method and 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) |
protected Server(Consumer<Server> serverConsumer, Supplier<ServletContainerService> servletContainer, Supplier<UndertowService> undertowService, String name, String defaultHost)
public void start(org.jboss.msc.service.StartContext startContext)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext stopContext)
stop in interface org.jboss.msc.Servicepublic Server getValue()
getValue in interface org.jboss.msc.value.Value<Server>protected void registerListener(ListenerService listener)
protected void unregisterListener(ListenerService listener)
protected void registerHost(Host host)
protected void unregisterHost(Host host)
public int lookupSecurePort(int unsecurePort)
public ServletContainerService getServletContainer()
protected io.undertow.server.HttpHandler getRoot()
public String getName()
public String getDefaultHost()
public List<UndertowListener> getListeners()
public String getRoute()
Copyright © 2022 JBoss by Red Hat. All rights reserved.