We have an application with API via HTTP. If I want to get data from this API from linux script I just run something like
curl -s http://10.20.1.116:8080/afa/report?session=fd58603c6673
and get back json
{
  "content" : [ {
    "id" : 6243,
    "user" : "admin",
    "firewall" : "NewGroup_Lab",
    "updateDate" : 1406225284152,
    "attributes" : {
      "EmailNotification" : "True",
      "Job_status" : "COMPLETED",
      "Submitted_by" : "afa",
      "Regulatory_score_glba_group" : "22,9,10,65",
      "Pid" : "11254",
      "Owner" : "admin",
      "Regulatory_score_nist_800-41_group" : "15,13,8,52",
    }
Now we want to use this API in java program. What is the correct way to access the API URL? What should I replace the curl with?
Thanks.
 
     
     
     
    