Subversion Repositories SmartDukaan

Rev

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

Rev 30566 Rev 30567
Line 125... Line 125...
125
				} else {
125
				} else {
126
					Map<String, String> headersMap = new HashMap<>();
126
					Map<String, String> headersMap = new HashMap<>();
127
					headersMap.put("Authorization", "Basic " + Base64.getEncoder().encodeToString("smartdukaan:$smart@123#".getBytes()));
127
					headersMap.put("Authorization", "Basic " + Base64.getEncoder().encodeToString("smartdukaan:$smart@123#".getBytes()));
128
					if (invoiceNumbers.size() == 1) {
128
					if (invoiceNumbers.size() == 1) {
129
						String invoicePath = this.getInvoicePath(invoiceOrdersMap.get(invoiceNumbers.get(0)).get(0));
129
						String invoicePath = this.getInvoicePath(invoiceOrdersMap.get(invoiceNumbers.get(0)).get(0));
130
						HttpResponse response = restClient.getResponse("http://50.116.3.101/" + invoicePath, null, headersMap);
130
						HttpResponse response = restClient.getResponse("http://192.168.202.177/" + invoicePath, null, headersMap);
131
						InputStreamResource is = new InputStreamResource(response.getEntity().getContent());
131
						InputStreamResource is = new InputStreamResource(response.getEntity().getContent());
132
						return new ResponseEntity<>(is, headers, HttpStatus.OK);
132
						return new ResponseEntity<>(is, headers, HttpStatus.OK);
133
 
133
 
134
					} else {
134
					} else {
135
 
135