org.springframework.boot.web.embedded.undertow

Class UndertowServletWebServer

  • java.lang.Object
    • org.springframework.boot.web.embedded.undertow.UndertowServletWebServer
    • Constructor Detail

      • UndertowServletWebServer

        public UndertowServletWebServer(io.undertow.Undertow.Builder builder,
                                        io.undertow.servlet.api.DeploymentManager manager,
                                        String contextPath,
                                        boolean autoStart,
                                        Compression compression)
        Create a new UndertowServletWebServer instance.
        Parameters:
        builder - the builder
        manager - the deployment manager
        contextPath - the root context path
        autoStart - if the server should be started
        compression - compression configuration
      • UndertowServletWebServer

        public UndertowServletWebServer(io.undertow.Undertow.Builder builder,
                                        io.undertow.servlet.api.DeploymentManager manager,
                                        String contextPath,
                                        boolean useForwardHeaders,
                                        boolean autoStart,
                                        Compression compression)
        Create a new UndertowServletWebServer instance.
        Parameters:
        builder - the builder
        manager - the deployment manager
        contextPath - the root context path
        useForwardHeaders - if x-forward headers should be used
        autoStart - if the server should be started
        compression - compression configuration
      • UndertowServletWebServer

        public UndertowServletWebServer(io.undertow.Undertow.Builder builder,
                                        io.undertow.servlet.api.DeploymentManager manager,
                                        String contextPath,
                                        boolean useForwardHeaders,
                                        boolean autoStart,
                                        Compression compression,
                                        String serverHeader)
        Create a new UndertowServletWebServer instance.
        Parameters:
        builder - the builder
        manager - the deployment manager
        contextPath - the root context path
        useForwardHeaders - if x-forward headers should be used
        autoStart - if the server should be started
        compression - compression configuration
        serverHeader - string to be used in HTTP header
    • Method Detail

      • getDeploymentManager

        public io.undertow.servlet.api.DeploymentManager getDeploymentManager()
      • stop

        public void stop()
                  throws WebServerException
        Description copied from interface: WebServer
        Stops the web server. Calling this method on an already stopped server has no effect.
        Specified by:
        stop in interface WebServer
        Throws:
        WebServerException - if the server cannot be stopped
      • getPort

        public int getPort()
        Description copied from interface: WebServer
        Return the port this server is listening on.
        Specified by:
        getPort in interface WebServer
        Returns:
        the port (or -1 if none)

Copyright © 2018 Pivotal Software, Inc.. All rights reserved.