Skip to content
README.md 1.65 KiB
Newer Older
박 진우's avatar
박 진우 committed
Ark CDC HTTP Client
==========================

Ark CDC HTTP Client project.
박 진우's avatar
박 진우 committed
Java HTTP Clinet library or Ark CDC HTTP API Java library.
박 진우's avatar
박 진우 committed

Building Instructions
---------------------

For building from source instructions please refer to BUILDING.txt.

Dependencies
------------

requires Java 1.7 compatible runtime.

박 진우's avatar
박 진우 committed
Getting Started
---------------

박 진우's avatar
박 진우 committed
<pre>
@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();
    }
}
</pre>

javadocs - https://lab.idatabank.com/javadocs/index.html
박 진우's avatar
박 진우 committed

박 진우's avatar
박 진우 committed
Licensing
---------

Apache License 2.0. See the files called LICENSE.txt and NOTICE.txt for more information.

Contact
박 진우's avatar
박 진우 committed
-------

http://idatabank.com/