return new Action() {
@Override
protected Object doAction(Object... params) {
ProxyResponse response = new ProxyResponse(BasicResponse.SUCCESS);
String serializedProxy = dataManager.getSettingString(E3Constant.GLOBAL_PROXY_SETTINGS);
ForwardProxy proxy = null;
if (serializedProxy != null) {
proxy = BeanConverterUtil.fromDataModel(com.alu.e3.data.model.sub.ForwardProxy.deserialize(serializedProxy));
}
if (proxy == null) {
proxy = new ForwardProxy();
}
response.setProxy(proxy);
return response;
}
};
}