The PredictionIO Java SDK includes an API client and sample code.
'io.prediction:client:0.8.2'
<dependency>
<groupId>io.prediction</groupId>
<artifactId>client</artifactId>
<version>0.8.2</version>
</dependency>
<dependency org="io.prediction" name="client" rev="0.8.2"/>
"io.prediction", "client", "0.8.2"