|  | @ -7,23 +7,25 @@ import com.yihu.hos.models.GatewayResponseResult;
 | 
	
		
			
				|  |  | import com.yihu.hos.services.GatewayService;
 | 
	
		
			
				|  |  | import net.sf.json.JSONObject;
 | 
	
		
			
				|  |  | import org.apache.commons.beanutils.BeanUtils;
 | 
	
		
			
				|  |  | import org.springframework.stereotype.Controller;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestMethod;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.ResponseBody;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import javax.annotation.Resource;
 | 
	
		
			
				|  |  | import javax.servlet.http.HttpServletRequest;
 | 
	
		
			
				|  |  | import javax.servlet.http.HttpServletResponse;
 | 
	
		
			
				|  |  | import java.io.Writer;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | @Controller
 | 
	
		
			
				|  |  | @RestController
 | 
	
		
			
				|  |  | @RequestMapping("/esb")
 | 
	
		
			
				|  |  | public class GatewayController {
 | 
	
		
			
				|  |  |     @Resource(name = GatewayService.BEAN_ID)
 | 
	
		
			
				|  |  |     private GatewayService gatewayService;
 | 
	
		
			
				|  |  |     private final GatewayService gatewayService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     public GatewayController(GatewayService gatewayService) {
 | 
	
		
			
				|  |  |         this.gatewayService = gatewayService;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/gateway", method = RequestMethod.POST)
 | 
	
		
			
				|  |  |     public void transfer(HttpServletRequest request, HttpServletResponse response) throws Exception {
 | 
	
		
			
				|  |  |         request.setCharacterEncoding("UTF-8");
 |