org.springframework.boot.web.servlet.server

Interface ConfigurableServletWebServerFactory

    • Method Detail

      • setContextPath

        void setContextPath(String contextPath)
        Sets the context path for the web server. The context should start with a "/" character but not end with a "/" character. The default context path can be specified using an empty string.
        Parameters:
        contextPath - the contextPath to set
      • setDisplayName

        void setDisplayName(String displayName)
        Sets the display name of the application deployed in the web server.
        Parameters:
        displayName - the displayName to set
        Since:
        1.3.0
      • setSession

        void setSession(Session session)
        Sets the configuration that will be applied to the container's HTTP session support.
        Parameters:
        session - the session configuration
      • setRegisterDefaultServlet

        void setRegisterDefaultServlet(boolean registerDefaultServlet)
        Set if the DefaultServlet should be registered. Defaults to true so that files from the document root will be served.
        Parameters:
        registerDefaultServlet - if the default servlet should be registered
      • setMimeMappings

        void setMimeMappings(MimeMappings mimeMappings)
        Sets the mime-type mappings.
        Parameters:
        mimeMappings - the mime type mappings (defaults to MimeMappings.DEFAULT)
      • setDocumentRoot

        void setDocumentRoot(File documentRoot)
        Sets the document root directory which will be used by the web context to serve static files.
        Parameters:
        documentRoot - the document root or null if not required
      • setJsp

        void setJsp(Jsp jsp)
        Sets the configuration that will be applied to the server's JSP servlet.
        Parameters:
        jsp - the JSP servlet configuration
      • setLocaleCharsetMappings

        void setLocaleCharsetMappings(Map<Locale,Charset> localeCharsetMappings)
        Sets the Locale to Charset mappings.
        Parameters:
        localeCharsetMappings - the Locale to Charset mappings
      • setInitParameters

        void setInitParameters(Map<String,String> initParameters)
        Sets the init parameters that are applied to the container's ServletContext.
        Parameters:
        initParameters - the init parameters