Newer
Older
Ark CDC HTTP Client
==========================
Ark CDC HTTP Client project.
Building Instructions
---------------------
For building from source instructions please refer to BUILDING.txt.
Dependencies
------------
requires Java 1.7 compatible runtime.
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<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
Licensing
---------
Apache License 2.0. See the files called LICENSE.txt and NOTICE.txt for more information.
Contact