Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 @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());
 }
Ejemplo n.º 3
0
 @Override
 public void onSuccess(Void result) {
   Info.display("Информация", "Информация о студенте обновлена успешно!");
 }