Added logic to use UCB adn NABARD servers.
This commit is contained in:
parent
675f029e81
commit
5eacf8175d
@ -30,9 +30,15 @@ public class RequestResponse {
|
|||||||
|
|
||||||
public static ArrayList<DataBean> get_response(String jsonInputString, String date)
|
public static ArrayList<DataBean> get_response(String jsonInputString, String date)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
String urlFromDatabase = "https://IPKS.cedgenetbanking.in/IPKSTRAN";
|
// String urlFromDatabase = "https://IPKS.cedgenetbanking.in/IPKSTRAN";
|
||||||
|
String urlFromDatabase = "";
|
||||||
System.out.println("Req MSG : " + jsonInputString);
|
String bc = new JSONObject(jsonInputString).getString("bankcode");
|
||||||
|
if(bc.equals("0005") || bc.equals("0021")) {
|
||||||
|
urlFromDatabase = "https://NABARDIPKS.cedgeapiservices.in/IPKSTRAN";
|
||||||
|
} else {
|
||||||
|
urlFromDatabase = "https://UCBIPKS/cdegeapiservices.in/IPKSTRAN";
|
||||||
|
}
|
||||||
|
System.out.println(urlFromDatabase);
|
||||||
ArrayList<DataBean> data = new ArrayList<>();
|
ArrayList<DataBean> data = new ArrayList<>();
|
||||||
URL url = null;
|
URL url = null;
|
||||||
|
|
||||||
@ -275,4 +281,4 @@ public class RequestResponse {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user