ÃֽŠ°Ô½Ã±Û(JAVA)
2018.12.07 / 17:24

[HttpClient] ¼¼¼ÇÀ¯Áö

hanulbit
Ãßõ ¼ö 339

ÂüÁ¶:  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;

}