Ark CDC HTTP Client ========================== Ark CDC HTTP Client project. Java HTTP Clinet library or Ark CDC HTTP API Java library. Building Instructions --------------------- For building from source instructions please refer to BUILDING.txt. Dependencies ------------ requires Java 1.7 compatible runtime. Getting Started ---------------
@Test
public void testClient() {
  
    try (ArkHttpClient client = new ArkHttpClient("http://172.16.0.174:50000")) {
  
        client.get("/afc/info/modules");
  
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
  
}
  
@Test
public void testApi() throws IOException {
  
    ArkHttpApi api = new ArkHttpApi("http://172.16.0.174:50000");
  
    try {
  
        api.open("qwe123");
        api.getModules();
  
    } catch (NoSuchAlgorithmException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } finally {
        api.close();
    }
  
}
  
@Test
public void testApi2() {
  
    try (ArkHttpApi api = new ArkHttpApi("http://172.16.0.174:50000", "qwe123")) {
  
        api.getModules();
  
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (NoSuchAlgorithmException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
javadocs - https://lab.idatabank.com/javadocs/index.html Licensing --------- Apache License 2.0. See the files called LICENSE.txt and NOTICE.txt for more information. Contact ------- http://idatabank.com/