Mercurial > hg > Database > jungle-network
comparison src/main/java/app/bbs/NetworkJungleBulletinBoard.java @ 173:e30880a72909
change servlet encode utf-8
author | tatsuki |
---|---|
date | Wed, 30 Jul 2014 17:46:58 +0900 |
parents | 00c3cca1903c |
children | ac7d1070f449 |
comparison
equal
deleted
inserted
replaced
172:d483caeabffc | 173:e30880a72909 |
---|---|
124 Children<Node> chs = node.getChildren(); | 124 Children<Node> chs = node.getChildren(); |
125 | 125 |
126 IterableConverter.Converter<String, Node> converter = new IterableConverter.Converter<String, Node>() { | 126 IterableConverter.Converter<String, Node> converter = new IterableConverter.Converter<String, Node>() { |
127 public String conv(Node _b) { | 127 public String conv(Node _b) { |
128 ByteBuffer e = _b.getAttributes().get("name"); | 128 ByteBuffer e = _b.getAttributes().get("name"); |
129 System.out.println(new String(e.array())); | |
129 return new String(e.array()); | 130 return new String(e.array()); |
130 } | 131 } |
131 }; | 132 }; |
132 | 133 |
133 return new IterableConverter<String, Node>(chs, converter); | 134 return new IterableConverter<String, Node>(chs, converter); |
373 editor = either.b(); | 374 editor = either.b(); |
374 either = editor.success(); | 375 either = editor.success(); |
375 } while (either.isA()); | 376 } while (either.isA()); |
376 } | 377 } |
377 | 378 |
378 public void editAttribute(String boardName, String _path, String id, String _message) { | 379 public void editAttribute(String boardName, String _path, final String id, final String _message) { |
379 requestCounter.incrementAndGet(); | 380 requestCounter.incrementAndGet(); |
380 final long timestamp = System.currentTimeMillis(); | 381 final long timestamp = System.currentTimeMillis(); |
381 final ByteBuffer tBuffer = ByteBuffer.allocate(16); | 382 final ByteBuffer tBuffer = ByteBuffer.allocate(16); |
382 tBuffer.putLong(timestamp); | 383 tBuffer.putLong(timestamp); |
383 JungleTree tree = jungle.getTreeByName(boardName); | 384 JungleTree tree = jungle.getTreeByName(boardName); |