Subversion Repositories SmartDukaan

Rev

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

Rev 28653 Rev 29496
Line 158... Line 158...
158
		LOGGER.info("Connecting to server at url {}", request.getURI());
158
		LOGGER.info("Connecting to server at url {}", request.getURI());
159
		try {
159
		try {
160
			HttpResponse response = httpClient.execute(request);
160
			HttpResponse response = httpClient.execute(request);
161
			String responseString = this.toString(response.getEntity().getContent());
161
			String responseString = this.toString(response.getEntity().getContent());
162
			LOGGER.info("Got response from server with responseCode {}", response.getStatusLine().getStatusCode());
162
			LOGGER.info("Got response from server with responseCode {}", response.getStatusLine().getStatusCode());
-
 
163
			LOGGER.info("Response String", responseString);
163
			return responseString;
164
			return responseString;
164
		} catch (HttpHostConnectException httpHostConnectException) {
165
		} catch (HttpHostConnectException httpHostConnectException) {
165
			LOGGER.error("Connection Timeout Exception", httpHostConnectException);
166
			LOGGER.error("Connection Timeout Exception", httpHostConnectException);
166
			throw httpHostConnectException;
167
			throw httpHostConnectException;
167
		} catch (ClientProtocolException e) {
168
		} catch (ClientProtocolException e) {