...
The Java connector framework is used within Wookie itself and is therefore considered the reference implementation. Other connector frameworks include PHP, C#, Ruby and Python. However, event the Java framwork is incomplete and some activities are accessed directly through the REST API (see next section). We welcome your help in expanding the framework code (in any language) so that all features can be accessed through it.
See http://svn.apache.org/repos/asf/incubator/wookie/trunk/connector/ for the latest available code.
To use the frmework framework you will need to do the following:
...
Code Block |
---|
// Get the wookie service connector StringBuilder sbUrl = new StringBuilder(request.getScheme()); sbUrl.append("://"); sbUrl.append(request.getServerName()); sbUrl.append(":"); sbUrl.append(request.getServerPort()); sbUrl.append(request.getContextPath()); serverURL = "http://foo.org/wookie"; apiKey = "TEST"; sharedDataKey = "myshareddata"; connectorService = new WookieConnectorService(serverURL, apiKey, sharedDataKey); // Set the current user connectorService.setCurrentUser("testuser"); // get or create a widget instance = connectorService.getOrCreateInstance(guid); // show widget showWidget(instance.getUrl()); |
...
Building Plugins without a Connector Framework
We strongly discourage you from building a plugin from scratch without first building a connector framework for your chosen language. By building a connector framework, or even partially implementing one, in your chosen programming language you will be helping others build more plugins as well as being able to share resources with others using the same connector framework.
...