private static boolean error(VaadinRequest request, VaadinResponse response, String logMessage) throws IOException { getLogger().log(Level.WARNING, logMessage); response.sendError( HttpServletResponse.SC_NOT_FOUND, request.getPathInfo() + " can not be found"); // Request handled (though not in a nice way) return true; }
private void finish(VaadinSession session, VaadinResponse response) throws IOException { response.setContentType("text/html"); response.getWriter().append(CLOSE_WINDOW_HTML); cleanUpSession(session); }