diff --git a/src/main/java/com/methods/RequestResponse.java b/src/main/java/com/methods/RequestResponse.java index c4a7e38..a46b82f 100644 --- a/src/main/java/com/methods/RequestResponse.java +++ b/src/main/java/com/methods/RequestResponse.java @@ -40,13 +40,21 @@ public class RequestResponse { InputStream input1 = null; String apiURL = null; try { + String bc = new JSONObject(jsonInputString).getString("bankcode"); input1 = Scheduler.class.getClass().getResourceAsStream("/Properties.properties"); prop.load(input1); - apiURL = prop.getProperty("APIURL"); + if(bc.equals("0005") || bc.equals("0021")) { + apiURL = prop.getProperty("APIURL_NABARD"); + } else { + apiURL = prop.getProperty("APIURL_UCB"); + } } catch (IOException ex) { log.error(String.valueOf(ex.getMessage()) + " error in request response class line no 67"); + } catch(Exception e) { + log.error(e.getMessage()); + e.printStackTrace(); } finally { if (input1 != null) {