Subversion Repositories SmartDukaan

Rev

Rev 23532 | Rev 23786 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23532 Rev 23568
Line 11... Line 11...
11
 
11
 
12
import org.apache.commons.lang3.StringUtils;
12
import org.apache.commons.lang3.StringUtils;
13
import org.apache.http.conn.HttpHostConnectException;
13
import org.apache.http.conn.HttpHostConnectException;
14
import org.json.JSONArray;
14
import org.json.JSONArray;
15
import org.json.JSONObject;
15
import org.json.JSONObject;
16
import org.slf4j.Logger;
16
import org.apache.logging.log4j.Logger;
17
import org.slf4j.LoggerFactory;
17
import org.apache.logging.log4j.LogManager;
18
import org.springframework.beans.factory.annotation.Autowired;
18
import org.springframework.beans.factory.annotation.Autowired;
19
import org.springframework.beans.factory.annotation.Value;
19
import org.springframework.beans.factory.annotation.Value;
20
import org.springframework.http.HttpStatus;
20
import org.springframework.http.HttpStatus;
21
import org.springframework.http.MediaType;
21
import org.springframework.http.MediaType;
22
import org.springframework.http.ResponseEntity;
22
import org.springframework.http.ResponseEntity;
Line 61... Line 61...
61
 
61
 
62
@Controller
62
@Controller
63
@Transactional(rollbackFor = Throwable.class)
63
@Transactional(rollbackFor = Throwable.class)
64
public class DealsController {
64
public class DealsController {
65
 
65
 
66
	private static final Logger logger = LoggerFactory.getLogger(DealsController.class);
66
	private static final Logger logger = LogManager.getLogger(DealsController.class);
67
 
67
 
68
	@Value("${python.api.host}")
68
	@Value("${python.api.host}")
69
	private String host;
69
	private String host;
70
	
70
	
71
	@Value("${python.api.port}")
71
	@Value("${python.api.port}")