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 - the root 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

        @Deprecated
        public void setBuffersPerRegion(Integer buffersPerRegion)
        Deprecated. 
      • 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)
      • getAccessLogPrefix

        public String getAccessLogPrefix()
      • setAccessLogPrefix

        public void setAccessLogPrefix(String accessLogPrefix)
      • setAccessLogSuffix

        public void setAccessLogSuffix(String accessLogSuffix)
      • setAccessLogEnabled

        public void setAccessLogEnabled(boolean accessLogEnabled)
      • isAccessLogEnabled

        public boolean isAccessLogEnabled()
      • setAccessLogRotate

        public void setAccessLogRotate(boolean accessLogRotate)
      • 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 © 2018 Pivotal Software, Inc.. All rights reserved.