|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 对象转成json | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | * @throws Exception | 
|---|
|  |  |  | * @return json | 
|---|
|  |  |  | * @throws Exception 异常 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public String toJson()throws Exception{ | 
|---|
|  |  |  | try{ | 
|---|
|  |  |  | 
|---|
|  |  |  | * json转成对象 | 
|---|
|  |  |  | * @param json | 
|---|
|  |  |  | * @param clazz | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | * @throws Exception | 
|---|
|  |  |  | * @return 对象 | 
|---|
|  |  |  | * @throws Exception 异常 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public static RmiResponseVo jsonToObject(String json, Class<?> clazz)throws Exception{ | 
|---|
|  |  |  | try{ | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public boolean isSuccess() { | 
|---|
|  |  |  | return success; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setSuccess(boolean success) { | 
|---|
|  |  |  | this.success = success; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getErrorInfo() { | 
|---|
|  |  |  | return errorInfo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setErrorInfo(String errorInfo) { | 
|---|
|  |  |  | this.errorInfo = errorInfo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getCode() { | 
|---|
|  |  |  | return code; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public boolean isSuccess() { | 
|---|
|  |  |  | return success; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setSuccess(boolean success) { | 
|---|
|  |  |  | this.success = success; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public String getErrorInfo() { | 
|---|
|  |  |  | return errorInfo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setErrorInfo(String errorInfo) { | 
|---|
|  |  |  | this.errorInfo = errorInfo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setCode(String code) { | 
|---|
|  |  |  | this.code = code; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | public void setObj(Object obj) { | 
|---|
|  |  |  | this.obj = obj; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|