class BlockLocalhostUsageStatusServlet extends HttpServlet {

    @Override
    protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("application/json");
        PrintWriter out = resp.getWriter();
        boolean localhostModeSwitchedOn = localhostRequestProcessorToggle.isOn();
        out.write("{\"localhostMode\":" + localhostModeSwitchedOn + "}");
        out.flush();
        out.close();
    }

    @Autowired public  BlockLocalhostUsageStatusServlet(LocalhostRequestProcessorToggle localhostRequestProcessorToggle);

}