public static void displayCookies() { StringBuilder cookies = new StringBuilder(); for (String name : Cookies.getCookieNames()) { String value = Cookies.getCookie(name); cookies.append(name).append(" = ").append(value).append("<br/>"); } Info.display("Cookies", cookies.toString()); }
@Override public void onMessage(List<?> messages) { StringBuilder result = new StringBuilder(); for (Object obj : messages) { result.append(obj.toString()).append("<br/>"); } logger.log( Level.INFO, "comet.message [" + client.getConnectionUUID() + "] " + result.toString()); Info.display( "[" + client.getConnectionUUID() + "] Received " + messages.size() + " messages", result.toString()); }
@Override public void onSuccess(Void result) { Info.display("Информация", "Информация о студенте обновлена успешно!"); }