I want to get the values from this http link:
https://www.test.com/notification?con=41280440000097&dp=1232&type=single
https://www.test.com/notification?con=41280440000097&sec=1232
I tried to implement this Spring code:
@PostMapping(value = "/v1/notification")
public String handleNotifications(@RequestParam("notification") String itemid) {
// parse here the values
return "result";
}
But how I can parse the http link and get the values for example in ArrayList of HashMap?