Subversion Repositories SmartDukaan

Rev

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

Rev 22345 Rev 22844
Line 89... Line 89...
89
			throws ProfitMandiBusinessException{
89
			throws ProfitMandiBusinessException{
90
		LOGGER.info("Connecting to server at url {}",request.getURI());
90
		LOGGER.info("Connecting to server at url {}",request.getURI());
91
		try {
91
		try {
92
			HttpResponse response = httpClient.execute(request);
92
			HttpResponse response = httpClient.execute(request);
93
			String responseString = this.toString(response.getEntity().getContent());
93
			String responseString = this.toString(response.getEntity().getContent());
94
			LOGGER.info("Got response from server with responseCode {} and responseBody {}", response.getStatusLine().getStatusCode(), responseString);
94
			//LOGGER.info("Got response from server with responseCode {} and responseBody {}", response.getStatusLine().getStatusCode(), responseString);
95
			if(response.getStatusLine().getStatusCode() == HttpStatus.OK.value()){
95
			if(response.getStatusLine().getStatusCode() == HttpStatus.OK.value()){
96
				return responseString;
96
				return responseString;
97
			}else{
97
			}else{
98
				throw new ProfitMandiBusinessException("", "", "GE_1005");
98
				throw new ProfitMandiBusinessException("", "", "GE_1005");
99
			}
99
			}