io.swagger.servlet.config.DefaultServletConfig Maven / Gradle / Ivy
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));
}
}