Java client usage

Java users have the possibility to use a service Java interface in combination with delight.

You can build a service client instance as follows:
    Delight delight = new Delight(DelightConfigFinder.getDefaultConfig());
    GraphPathRecoServiceInterface client = delight.connectingTo("http://simrec.kl.dfki.de/simrec").usingApi("graphPathRecoService", GraphPathRecoServiceInterface.class);
Available service handlers: [graphPathRecoService]
Corresponding interfaces: [GraphPathRecoServiceInterface]
Don't forget to enable the JSON/HTTP transport layer.

Alternatively, you can use our pre-built client without generating something on your own:
    GraphPathRecoServiceInterface client = GraphPathRecoServiceClient.getInstance();
Available client implementations: [GraphPathRecoServiceClient]

Dependencies:
interface binary jar, source


Maven:
The service offers a micro repository to deliver its artifacts. Enable it as follows:
<repositories>
   <repository>
      <id>delightServiceRepository@httpsimreckldfkidesimrec</id>
      <url>http://simrec.kl.dfki.de/simrec</url>
      <snapshots>
         <updatePolicy>always</updatePolicy>
         <checksumPolicy>warn</checksumPolicy>
         <enabled>true</enabled>
      </snapshots>
   </repository>
</repositories>

and in the <dependencies> section

<dependency>
   <groupId>simrecGroup</groupId>
   <artifactId>simrecServiceInterface</artifactId>
   <version>fluent-SNAPSHOT</version>
</dependency>



...enjoy :)