A full getting started guide can be found on the ARI4Java Wiki
// create instance ARI ari = ARI.build("http://192.168.56.44:8088/", "test-app", "ari4java", "yothere", AriVersion.IM_FEELING_LUCKY); // get info AsteriskInfo info = ari.asterisk().getInfo().execute(); // get event websocket ari.events().eventWebsocket("test-app").execute(new AriWSCallback<Message<() {new AriWSCallback<List<Channel>>() { @Override public void onSuccess(List<Channel> result) { // code to handle the result ... } @Override public void onFailure(RestException e) { e.printStackTrace(); } @Override public void onConnectionEvent(AriConnectionEvent event) { // if you wish to know the status (connected/disconnected) of the WS connection } });See ch.loway.oss.ari4java.ARI Methods