private void writeRefresh(VaadinResponse response) throws IOException { String json = VaadinService.createCriticalNotificationJSON(null, null, null, null); commitJsonResponse(response, json); }
/** * Sends a refresh message to the given atmosphere resource. Uses an * AtmosphereResource instead of an AtmospherePushConnection even though it * might be possible to look up the AtmospherePushConnection from the UI to * ensure border cases work correctly, especially when there temporarily are * two push connections which try to use the same UI. Using the * AtmosphereResource directly guarantees the message goes to the correct * recipient. * * @param resource * The atmosphere resource to send refresh to * */ private static void sendRefreshAndDisconnect(AtmosphereResource resource) throws IOException { sendNotificationAndDisconnect(resource, VaadinService .createCriticalNotificationJSON(null, null, null, null)); }
getService().writeUncachedStringResponse(response, JsonConstants.JSON_CONTENT_TYPE, VaadinService.createCriticalNotificationJSON( systemMessages.getCookiesDisabledCaption(), systemMessages.getCookiesDisabledMessage(),
writeUncachedStringResponse(response, JsonConstants.JSON_CONTENT_TYPE, createCriticalNotificationJSON( ci.getInternalErrorCaption(), ci.getInternalErrorMessage(), null,
VaadinService.createCriticalNotificationJSON( msg.getInternalErrorCaption(), msg.getInternalErrorMessage(), null,