package org.kantega.revoc.web; import org.kantega.revoc.registry.Registry; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * */ public class JsonServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException { response.setContentType("application/json"); new JsonHandler().writeJson(Registry.getCoverageData(), response.getWriter()); } }