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

io.swagger.jaxrs.config.DefaultJaxrsConfig Maven / Gradle / Ivy

There is a newer version: 1.5.7
Show newest version
package io.swagger.jaxrs.config;

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

public class DefaultJaxrsConfig extends HttpServlet {
    @Override
    public void init(ServletConfig servletConfig) throws javax.servlet.ServletException {
        super.init(servletConfig);

        servletConfig.getServletContext().setAttribute("reader", new WebXMLReader(servletConfig));
        servletConfig.getServletContext().setAttribute("scanner", new DefaultJaxrsScanner());
        ReaderConfigUtils.initReaderConfig(servletConfig);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy