Package reddit.http

Examples of reddit.http.HttpAsynchronousRunnable


    String subredditName = getSubredditName(message);
    HttpMethod httpMethod = new GetMethod(redditUrl + subredditName + ".json");
    RedditJSonProcessor responseProcessor = new RedditJSonProcessor(this.dispatcher);
    HttpSession httpSession = new HttpSession(httpMethod, responseProcessor);
   
    HttpAsynchronousRunnable runnable = new HttpAsynchronousRunnable(httpMethod, httpSession);
    ExecutorService executor = Executors.newSingleThreadExecutor();
   
    executeRunnable(executor, runnable, message);
  }
View Full Code Here

TOP

Related Classes of reddit.http.HttpAsynchronousRunnable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.