Changes between Version 6 and Version 7 of WikiStart


Ignore:
Timestamp:
11/08/18 11:54:23 (6 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v6 v7  
    77After installing and starting, go to [http://localhost:8080/profilesserver] to see if it works.
    88
    9 To download a profile in your agent, check the examples in  [browser].
     9To download a profile in your agent, check the examples in  [https://tracinsy.ewi.tudelft.nl/trac/Genius2ProfilesServer/browser/src/test/java/genius2/examples]. Basically you just open a websocket and read the incoming profile like this
     10{{{
     11WebSocketFactory factory = new WebSocketFactory().setConnectionTimeout(5000);
     12WebSocket ws = factory.createSocket("ws://localhost:8080/profilesserver/websocket/get/jobs/jobs1");
     13ws.addListener(this);
     14
     15and
     16
     17@Override
     18public void onTextMessage(WebSocket websocket, String json) throws Exception {
     19        System.out.println("received profile: " + new ObjectMapper().readValue(json, Profile.class));
     20}
    1021
    1122
    12 Source repository
     23
     24
     25}}}
     26
     27
     28You can also download this source repository (you don't need this if you just want to use the profilesserver)
    1329
    1430{{{