org.springframework.boot.context.embedded.undertow

Class UndertowEmbeddedServletContainerFactory

    • Constructor Detail

      • UndertowEmbeddedServletContainerFactory

        public UndertowEmbeddedServletContainerFactory(int port)
        Create a new UndertowEmbeddedServletContainerFactory that listens for requests using the specified port.
        Parameters:
        port - the port to listen on
      • UndertowEmbeddedServletContainerFactory

        public UndertowEmbeddedServletContainerFactory(String contextPath,
                                                       int port)
        Create a new UndertowEmbeddedServletContainerFactory with the specified context path and port.
        Parameters:
        contextPath - root the context path
        port - the port to listen on
    • Method Detail

      • setBuilderCustomizers

        public void setBuilderCustomizers(Collection<? extends UndertowBuilderCustomizer> customizers)
        Set UndertowBuilderCustomizers that should be applied to the Undertow Undertow.Builder. Calling this method will replace any existing customizers.
        Parameters:
        customizers - the customizers to set
      • getUndertowEmbeddedServletContainer

        protected UndertowEmbeddedServletContainer getUndertowEmbeddedServletContainer(io.undertow.Undertow.Builder builder,
                                                                                       io.undertow.servlet.api.DeploymentManager manager,
                                                                                       int port)
        Factory method called to create the UndertowEmbeddedServletContainer. Subclasses can override this method to return a different UndertowEmbeddedServletContainer or apply additional processing to the Undertow.Builder and DeploymentManager used to bootstrap Undertow
        Parameters:
        builder - the builder
        manager - the deployment manager
        port - the port that Undertow should listen on
        Returns:
        a new UndertowEmbeddedServletContainer instance
      • setResourceLoader

        public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
        Specified by:
        setResourceLoader in interface org.springframework.context.ResourceLoaderAware
      • setBufferSize

        public void setBufferSize(Integer bufferSize)
      • setBuffersPerRegion

        public void setBuffersPerRegion(Integer buffersPerRegion)
      • setIoThreads

        public void setIoThreads(Integer ioThreads)
      • setWorkerThreads

        public void setWorkerThreads(Integer workerThreads)
      • setDirectBuffers

        public void setDirectBuffers(Boolean directBuffers)
      • setAccessLogDirectory

        public void setAccessLogDirectory(File accessLogDirectory)
      • setAccessLogPattern

        public void setAccessLogPattern(String accessLogPattern)
      • setAccessLogEnabled

        public void setAccessLogEnabled(boolean accessLogEnabled)
      • isAccessLogEnabled

        public boolean isAccessLogEnabled()
      • isUseForwardHeaders

        protected final boolean isUseForwardHeaders()
      • setUseForwardHeaders

        public void setUseForwardHeaders(boolean useForwardHeaders)
        Set if x-forward-* headers should be processed.
        Parameters:
        useForwardHeaders - if x-forward headers should be used
        Since:
        1.3.0

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