org.springframework.boot.context.embedded

Class InitParameterConfiguringServletContextInitializer

  • java.lang.Object
    • org.springframework.boot.context.embedded.InitParameterConfiguringServletContextInitializer
  • All Implemented Interfaces:
    ServletContextInitializer


    public class InitParameterConfiguringServletContextInitializer
    extends Object
    implements ServletContextInitializer
    A ServletContextInitializer that configures init parameters on the ServletContext.
    Since:
    1.2.0
    Author:
    Andy Wilkinson
    See Also:
    ServletContext.setInitParameter(String, String)
    • Constructor Detail

      • InitParameterConfiguringServletContextInitializer

        public InitParameterConfiguringServletContextInitializer(Map<String,String> parameters)
    • Method Detail

      • onStartup

        public void onStartup(javax.servlet.ServletContext servletContext)
                       throws javax.servlet.ServletException
        Description copied from interface: ServletContextInitializer
        Configure the given ServletContext with any servlets, filters, listeners context-params and attributes necessary for initialization.
        Specified by:
        onStartup in interface ServletContextInitializer
        Parameters:
        servletContext - the ServletContext to initialize
        Throws:
        javax.servlet.ServletException - if any call against the given ServletContext throws a ServletException

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