[1] | 1 | <html>
|
---|
| 2 | <body>
|
---|
| 3 | <h1>GeniusWeb Domains and Profiles Server.</h1>
|
---|
| 4 | This server serves the domains and profiles.
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | <h2>
|
---|
| 9 | Currently available
|
---|
| 10 | </h1>
|
---|
| 11 |
|
---|
| 12 | The list of currently available profiles is <a
|
---|
| 13 | href="websocket/list.xhtml">here</a>.<br> The list of domain and
|
---|
| 14 | profile files is browsable <a href="domainsrepo">here</a>. Notice that
|
---|
| 15 | these may contain files with errors, and thus are not available for
|
---|
| 16 | use.
|
---|
| 17 |
|
---|
| 18 | <h2>
|
---|
| 19 | Adding domains and profiles
|
---|
| 20 | </h1>
|
---|
| 21 | You can add and remove domains and profiles by dragging your .json
|
---|
| 22 | files into and out of the repo directory.
|
---|
| 23 |
|
---|
| 24 | <h2>
|
---|
| 25 | Access
|
---|
| 26 | </h1>
|
---|
| 27 | Your agent has JSON based access to the repo through websockets. Two
|
---|
| 28 | examples are provided, one based on javax.websocket and one on
|
---|
| 29 | neovisionaries websocket
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | <h3>Example with javax websocket</h3>
|
---|
| 33 | The example code is available
|
---|
| 34 | <a
|
---|
| 35 | href="https://tracinsy.ewi.tudelft.nl/trac/Genius2ProfilesServer/browser/src/test/java/geniusweb/examples/DownloadProfileExample.java">here</a>
|
---|
| 36 | and also is part of the JavaClientTest junit test in this project (run with <code>mvn test</code>)
|
---|
| 37 | To compile that example you need the javax websocket
|
---|
| 38 | dependency in your pom:
|
---|
| 39 | <code>
|
---|
| 40 | <pre>
|
---|
| 41 | <dependency>
|
---|
| 42 | <groupId>javax.websocket</groupId>
|
---|
| 43 | <artifactId>javax.websocket-api</artifactId>
|
---|
| 44 | <version>1.1</version>
|
---|
| 45 | </dependency>
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 | </code>
|
---|
| 49 | </pre>
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 | <h3>Example with neovisionaries websocket</h3>
|
---|
| 53 | The example code is available
|
---|
| 54 | <a
|
---|
| 55 | href="https://tracinsy.ewi.tudelft.nl/trac/Genius2ProfilesServer/browser/src/test/java/geniusweb/examples/DownloadProfileExample.java">here</a>
|
---|
| 56 | and also is part of the JavaClientTest junit test in this project (run with <code>mvn test</code>)
|
---|
| 57 | To compile that example you need the neovisionaries websocket
|
---|
| 58 | dependency in your pom:
|
---|
| 59 | <code>
|
---|
| 60 | <pre>
|
---|
| 61 | <dependency>
|
---|
| 62 | <groupId>com.neovisionaries</groupId>
|
---|
| 63 | <artifactId>nv-websocket-client</artifactId>
|
---|
| 64 | <version>2.6</version>
|
---|
| 65 | </dependency>
|
---|
| 66 |
|
---|
| 67 |
|
---|
| 68 | </code>
|
---|
| 69 | </pre>
|
---|
| 70 | </body>
|
---|
| 71 | </html>
|
---|