WebLab Source Connector
In order to start processing content, one should obviously get content from a source. Whatever the source is and whatever the content is, the WebLab platform hides it behind the Queue Manager generic interface. It stands simply for what it is and acts as a simple queue that produce resources to be processed one by one. The only method accessible is nextResource() which either return the next Resource or throw an exception when the queue is finished.
TODO: This part has to be completed.
See Category:TODO for more information about using this template.
In order to explain the basic implementation, we will take the example of a simple connector to an existing file system. Thus the objective for the connector is to produce one by one the files contained. Thus on each call to the nextResource() method, the service will:
- build an XML description of the file with at least:
- a unique identifier which will be the resource URI;
- an annotation to link the weblab resource to its original source.
- upload the content of the file to the content repository of the application;
- add in the XML description the link (ie URL) to the content uploaded;
- send back the resource XML as answer to the call.
Thus the final returned XML will look like: