protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		String outputJson = "";
		PrintWriter out = response.getWriter();
		try {
			String method = request.getParameter("method").toLowerCase(
					Locale.ENGLISH);

			switch (CommandType.convertFormString(method)) {
			// Get user by user Id
			case GetUserById: {
				int uId = Integer.parseInt(request.getParameter("uid")
						.toString().trim());
				outputJson = doGetUserById(uId);
				break;
			}
			// Get user by user name
			case GetUserByName: {
				String userName = request.getParameter("uname").toString()
						.trim();
				outputJson = doGetUserByName(userName);
				break;
			}
			default: {
				break;
			}
			}
		} catch (Exception ex) {
			AppLogger.error(ex);
			CommonObjectWrapper jsonResult = handlerException(ex.toString());
			outputJson = Gson.toJson(jsonResult);
		}
		response.setContentType("application/json");
		response.setCharacterEncoding("utf-8");
		out.print(outputJson);
	}