class LogoutAction {

	@RequestMapping("/getAppList")
	public void getAppList(HttpServletRequest request,
			HttpServletResponse response){
		//解析用户凭据。
		Credential credential = credentialResolver.resolveCredential(request);
		//实现输出为json串。
		List<App> list =  this.ki4soService.getAppList(credential);
		String json = JSON.toJSONString(list);
		StringBuffer sb = new StringBuffer();
		sb.append(getCallbackName("fetchAppList", request))
		.append("(")
		.append(json)
		.append(");");
		try {
			response.setContentType("application/x-javascript");
			response.setCharacterEncoding("UTF-8");
			response.getWriter().println(sb.toString());
		} catch (IOException e) {
		}
	}

}