[HttpClient] ¼¼¼ÇÀ¯Áö
ÂüÁ¶: http://www.androidpub.com/2113938
HttpClient °´Ã¼¿¡¼ ¼¼¼ÇÁ¤º¸ µµ ÇÔ²² ÀúÀåÇϹǷΠ»ý¼ºÇÑ °´Ã¼¸¦ °è¼ÓÇؼ »ç¿ëÇÏ¸é µÉ°ÍÀÌ´Ù.
¿¹Á¦
@RequestMapping("/gen")
@ResponseBody
@CrossOrigin(origins = "http://127.0.0.1", maxAge = 3600)
public String page_gen(HttpServletRequest request, ModelMap model, MyVO MyVO) throws Throwable{
String htmlRsp="";
String serial= "";
CloseableHttpClient httpCient = MyService.webLogin("admin","adminadmin");
Integer strCnt=MyService.searchCustomer(MyVO.getEmail(), httpCient);
String customerLocation= MyService.CreateCustomer(MyVO, httpCient);
String entitlementLocation= MyService.createEntitlement(customerLocation, MyVO, httpCient);
serial= MyService.SearchEntitlement(entitlementLocation, httpCient);
MyVO.setSerial(serial);
MyService.sndSerialMail(MyVO);
return serial;
}
[Ãâó] [HttpClient] ¼¼¼ÇÀ¯Áö|ÀÛ¼ºÀÚ °Ü¿ï³ª¹«