package com.partynetwork.dataprovider.json; /** * * com.partynetwork.dataprovider.json.JsonResponse * * @author 沈跃双 Create at 2014-1-15 上午10:36:00 */ public class JsonResponse { public static final int RESULT_SUCCESS = 1;// 成功 public static final int RESULT_FAILED = 0;// 失败 public JsonResponse() { init(); } private void init() { } /** * 根据输入字符串,返回对象 * * @param paramRequest * @param paramStream * @return * @throws Exception */ public CommonResponse Response(CommonRequest paramRequest, String paramStream) throws Exception { if (null == paramStream) { throw new Exception(); } return paramRequest.getObject(paramStream); } }