Пример #1
0
 public static void startConnection() {
   StreamConfig config = getConfig();
   try {
     startStream(config.listTerms());
   } catch (TwitterException e) {
     Logger.info("Error starting twitter stream", e);
   }
 }
Пример #2
0
 public static Result editTerms() {
   StreamConfig config = getConfig();
   List<String> terms = config.listTerms();
   return ok(edit_stream_form.render(terms));
 }