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

com.mugui.base.net.forward.ForwardController Maven / Gradle / Ivy

There is a newer version: 0.0.8
Show newest version
package com.mugui.base.net.forward;


import com.alibaba.fastjson.JSONObject;
import com.mugui.base.base.Component;
import com.mugui.base.client.net.bagsend.HTTPUtil;
import com.mugui.base.client.net.bean.NetBag;
import com.mugui.base.client.net.filter.FilterModel;

/**
 * 已失效
 * @author Administrator
 *
 */
@Deprecated
@Component
public class ForwardController implements FilterModel {
	private ForwardManager forwardManager;

	@Override
	public NetBag filter(NetBag bag) {
		Forward forward = (Forward) forwardManager.get(bag.getFunc());
		if (forward == null) {
			return bag;
		}
		bag.InitBean(JSONObject.parseObject(HTTPUtil.post(forward.url(), bag.toString())));
		return null;
	}



}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy