/[projects]/android/MarketStats/src/dk/thoerup/marketstats/ShowStats.java
ViewVC logotype

Diff of /android/MarketStats/src/dk/thoerup/marketstats/ShowStats.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 659 by torben, Fri Apr 23 12:31:41 2010 UTC revision 660 by torben, Fri Apr 23 12:39:31 2010 UTC
# Line 49  public class ShowStats extends HttpServl Line 49  public class ShowStats extends HttpServl
49    
50          protected String doLookup(String appId) throws IOException {          protected String doLookup(String appId) throws IOException {
51                  MemcachedClient c = new MemcachedClient(new InetSocketAddress("localhost", 11211));                  MemcachedClient c = new MemcachedClient(new InetSocketAddress("localhost", 11211));
                 c.flush();  
52                                    
53    
54                  String key = "marketstats:" + appId;                  String key = "marketstats:" + appId;
# Line 152  public class ShowStats extends HttpServl Line 151  public class ShowStats extends HttpServl
151    
152          protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {          protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
153                  String appId = request.getParameter("appId");                  String appId = request.getParameter("appId");
154                    
155                    response.setContentType("text/html");
156                  PrintWriter out = response.getWriter();                  PrintWriter out = response.getWriter();
157                    out.print( "<html><body><pre>" + doLookup(appId) + "</pre></body></html>" );
                 out.print( "<pre>" + doLookup(appId) + "</pre>" );  
158          }          }
159    
160  }  }

Legend:
Removed from v.659  
changed lines
  Added in v.660

  ViewVC Help
Powered by ViewVC 1.1.20