com.mugui.base.net.forward.ForwardController Maven / Gradle / Ivy
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