All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.swagger.servlet.config.DefaultServletConfig Maven / Gradle / Ivy

There is a newer version: 1.6.14
Show newest version
package io.swagger.servlet.config;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

public class DefaultServletConfig extends HttpServlet {

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        super.init(servletConfig);

        servletConfig.getServletContext().setAttribute("reader", new WebXMLReader(servletConfig));
        servletConfig.getServletContext().setAttribute("scanner", new ServletScanner(servletConfig));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy