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