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