Using the Publisher it is possible to retrieve a variety of information from the repository
using one (remote) call, the response it returned as XML. The Publisher also has performs
additional processing and annotation on the content to prepare it for publishing.
This component helps a lot to create publishing frontends to the repository server,
of which the Daisy Wiki is one example. The Daisy documentation contains more extensive
documentation on the possibilities of the Publisher.
This is an optional repository extension component.
The Publisher is obtained from the
org.outerj.daisy.repository.Repository Repository as
follows:
Publisher publisher = (Publisher)repository.getExtension("Publisher");
In the remote repository API, the Publisher extension can be registered as follows:
RemoteRepositoryManager repositoryManager = ...;
repositoryManager.registerExtension("Publisher",
new Packages.org.outerj.daisy.publisher.clientimpl.RemotePublisherProvider());
|