All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webframe.web.springmvc.bean.AjaxJson Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
/*
 * com.berheley.bi.basic
 * Created on 2011-12-4-上午11:04:44
 */

package org.webframe.web.springmvc.bean;

import net.sf.json.JSONObject;

import org.webframe.support.util.SystemLogUtils;

/**
 * Ajax JOSN信息封装
 * 
 * @author 黄国庆 
 * @since 2012-1-29 下午09:52:35
 * @version
 */
public class AjaxJson {

	private JSONObject	json	= new JSONObject();

	public AjaxJson putMsg(String key, Object value) {
		json.put(key, value);
		return this;
	}

	public Object getMsg(String key) {
		return json.get(key);
	}

	@Override
	public String toString() {
		String str = json.toString();
		SystemLogUtils.println("AjaxJson:\n" + str);
		return str;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy