This is an short example of how to integrate Moskito within CDI.
On *nix execute gradlew clean war
On Windows execute gradlew.bat clean war
Start your application server and deploy the war.
For calculating the statistics for a document simply call `curl -PUT "http:////rest/document" -T -v"
This will return an id for your document.
For example on your local machine you can use this
curl -PUT "http://localhost:8080/MoskitoAndCDIExample/rest/document" -T build.gradle -v
For retrieving the whole statistics use this URL
http://<HOST>/<context-root>/rest/document/<ID>
For getting the statistic for a single word use this URL
http://<HOST>/<context-root>/rest/document/<ID>/<WORD>