liuxiaozhao

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

...

void doget.....

response.setContentType("application/xml");//设置格式
  PrintWriter out = response.getWriter();
  String agentId = request.getParameter("AgentID");
  
  MonitorService monitorService = ServiceFactory.getService(MonitorService.class);
  out.println(monitorService.getRestCountByAgentId(agentId));//返回
  out.flush();
  out.close();

posted on 2016-01-15 17:05  liuxiaozhao  阅读(215)  评论(0编辑  收藏  举报