@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
float strength = Float.parseFloat(req.getParameter("strength"));
EarthquakeEvent event = new EarthquakeEvent(strength, req.getParameter("location"));
NotificatorServiceHolder.getInstance().dispatchEvent(event);
resp.getWriter().append("<html><body>");
resp.getWriter().append("Event ").append(event.toString()).append(" emitted successfully!");
resp.getWriter().append("<br/><a href=\"index.jsp\">Back to main page</a>");
resp.getWriter().append("</body></html>");
}