public class Host extends Object implements org.jboss.msc.service.Service<Host>, FilterLocation
| Constructor and Description |
|---|
Host(Consumer<Host> serviceConsumer,
Supplier<Server> server,
Supplier<UndertowService> undertowService,
Supplier<org.jboss.as.controller.ControlledProcessStateService> controlledProcessStateService,
Supplier<org.jboss.as.server.suspend.SuspendController> suspendController,
String name,
List<String> aliases,
String defaultWebModule,
int defaultResponseCode,
Boolean queueRequestsOnStart) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(UndertowFilter filterRef) |
Map<String,io.undertow.security.api.AuthenticationMechanism> |
getAdditionalAuthenticationMechanisms() |
Set<String> |
getAllAliases() |
String |
getDefaultWebModule() |
Set<io.undertow.servlet.api.Deployment> |
getDeployments() |
Set<String> |
getLocations() |
String |
getName() |
protected io.undertow.server.HttpHandler |
getOrCreateRootHandler() |
protected io.undertow.server.HttpHandler |
getRootHandler() |
Server |
getServer() |
Host |
getValue() |
void |
registerDeployment(io.undertow.servlet.api.Deployment deployment,
io.undertow.server.HttpHandler handler) |
void |
registerHandler(String path,
io.undertow.server.HttpHandler handler) |
void |
removeFilter(UndertowFilter filterRef) |
protected void |
setupDefaultResponseCodeHandler() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
void |
unregisterDeployment(io.undertow.servlet.api.Deployment deployment) |
void |
unregisterHandler(String path) |
public Host(Consumer<Host> serviceConsumer, Supplier<Server> server, Supplier<UndertowService> undertowService, Supplier<org.jboss.as.controller.ControlledProcessStateService> controlledProcessStateService, Supplier<org.jboss.as.server.suspend.SuspendController> suspendController, String name, List<String> aliases, String defaultWebModule, int defaultResponseCode, Boolean queueRequestsOnStart)
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic Host getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<Host>IllegalStateExceptionIllegalArgumentExceptionpublic Server getServer()
public String getName()
protected io.undertow.server.HttpHandler getRootHandler()
protected io.undertow.server.HttpHandler getOrCreateRootHandler()
public String getDefaultWebModule()
public void registerDeployment(io.undertow.servlet.api.Deployment deployment,
io.undertow.server.HttpHandler handler)
public void unregisterDeployment(io.undertow.servlet.api.Deployment deployment)
public void registerHandler(String path, io.undertow.server.HttpHandler handler)
public void unregisterHandler(String path)
public Set<io.undertow.servlet.api.Deployment> getDeployments()
Deployments on this hostpublic Map<String,io.undertow.security.api.AuthenticationMechanism> getAdditionalAuthenticationMechanisms()
public void addFilter(UndertowFilter filterRef)
addFilter in interface FilterLocationpublic void removeFilter(UndertowFilter filterRef)
removeFilter in interface FilterLocationprotected void setupDefaultResponseCodeHandler()
Copyright © 2022 JBoss by Red Hat. All rights reserved.