Class Host

java.lang.Object
org.wildfly.extension.undertow.Host
All Implemented Interfaces:
org.jboss.msc.Service, org.jboss.msc.service.Service<Host>, org.jboss.msc.value.Value<Host>, FilterLocation

public class Host extends Object implements org.jboss.msc.service.Service<Host>, FilterLocation
Author:
Tomaz Cerar (c) 2013 Red Hat Inc., Radoslav Husar, Richard Opalka
  • Constructor Details

  • Method Details

    • start

      public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
      Specified by:
      start in interface org.jboss.msc.Service
      Throws:
      org.jboss.msc.service.StartException
    • stop

      public void stop(org.jboss.msc.service.StopContext context)
      Specified by:
      stop in interface org.jboss.msc.Service
    • getValue

      Specified by:
      getValue in interface org.jboss.msc.value.Value<Host>
      Throws:
      IllegalStateException
      IllegalArgumentException
    • getServer

      public Server getServer()
    • getAllAliases

      public Set<String> getAllAliases()
    • getName

      public String getName()
    • getRootHandler

      protected io.undertow.server.HttpHandler getRootHandler()
    • getOrCreateRootHandler

      protected io.undertow.server.HttpHandler getOrCreateRootHandler()
    • getDefaultWebModule

      public String getDefaultWebModule()
    • registerDeployment

      public void registerDeployment(io.undertow.servlet.api.Deployment deployment, io.undertow.server.HttpHandler handler)
    • unregisterDeployment

      public void unregisterDeployment(io.undertow.servlet.api.Deployment deployment)
    • registerHandler

      public void registerHandler(String path, io.undertow.server.HttpHandler handler)
    • unregisterHandler

      public void unregisterHandler(String path)
    • getLocations

      public Set<String> getLocations()
    • getDeployments

      public Set<io.undertow.servlet.api.Deployment> getDeployments()
      Returns:
      set of currently registered Deployments on this host
    • getAdditionalAuthenticationMechanisms

      public Map<String,io.undertow.security.api.AuthenticationMechanism> getAdditionalAuthenticationMechanisms()
    • addFilter

      public void addFilter(UndertowFilter filterRef)
      Specified by:
      addFilter in interface FilterLocation
    • removeFilter

      public void removeFilter(UndertowFilter filterRef)
      Specified by:
      removeFilter in interface FilterLocation
    • getSuspendState

      public org.jboss.as.server.suspend.SuspendController.State getSuspendState()
    • setupDefaultResponseCodeHandler

      protected void setupDefaultResponseCodeHandler()