GitHub - willedwards/gae-java-libpusher: A Java Google App Engine library for the Pusher REST API (http://www.pusherapp.com)

This Java classes can be used to communicate very easily with the Pusher REST API (http://www.pusherapp.com) from any Google App engine Web application.

Use the PushApi as seen in ch.mbae.pusher.PushApi.

PushApi api = new PushImpl();

api.setGAECredentials(pusherApplicationId, pusherApplicationKey, pusherApplicationSecret);

then call the following, where all arguments are strings.

PusherResponse resp = api.pushEvent(  channelName,  eventName,  jsonData,  socketId) ;

The implementation caches your channels, therefore when you have finished, eg a disconnect happens, then

api.disposeOfChannel(channelName);

That's it.