If you want to use DAISY Pipeline 2 as a web server and implement your own client, you need to know about the web service API.
We provide a Java HTTP client library for communicating with a Pipeline server. To use it in your Maven project include the following dependencies:
<dependency> <groupId>org.daisy.pipeline</groupId> <artifactId>clientlib-java</artifactId> <version>5.0.1</version> </dependency> <dependency> <groupId>org.daisy.pipeline</groupId> <artifactId>clientlib-java-httpclient</artifactId> <version>2.1.1</version> </dependency>
The entry point of the library is the class
org.daisy.pipeline.client.http.WS.
We also provide a HTTP client library for the Go language. Run the following command to download and install the “pipeline” package:
go get github.com/daisy/pipeline-clientlib-go
DAISY Pipeline 2 may also be used directly as a Java library instead of via client-server communication.
These are the most important classes in the Java API:
org.daisy.pipeline.script.ScriptRegistryorg.daisy.pipeline.script.Scriptorg.daisy.pipeline.datatypes.DatatypeRegistryorg.daisy.pipeline.script.BoundScriptorg.daisy.pipeline.job.JobManagerFactoryorg.daisy.pipeline.job.JobProviders of the ScriptRegistry, DatatypeRegistry and
JobManagerFactory services can be loaded using the
ServiceLoader
mechanism or using OSGi.
org.daisy.common.fuzzyorg.daisy.common.messagingorg.daisy.common.priorityorg.daisy.common.saxonorg.daisy.common.saxon.xsltorg.daisy.common.shellorg.daisy.common.slf4jorg.daisy.common.staxorg.daisy.common.transformorg.daisy.common.xpath.saxonorg.daisy.common.xprocorg.daisy.common.xproc.calabashorg.daisy.common.ziporg.daisy.pipeline.braille.commonorg.daisy.pipeline.client.filestorageorg.daisy.pipeline.client.httporg.daisy.pipeline.client.modelsorg.daisy.pipeline.client.models.datatypesorg.daisy.pipeline.client.utilsorg.daisy.pipeline.clientorg.daisy.pipeline.clientsorg.daisy.pipeline.datatypesorg.daisy.pipeline.eventorg.daisy.pipeline.joborg.daisy.pipeline.modulesorg.daisy.pipeline.scriptorg.daisy.pipeline.ttshttp://www.daisy.org/pipeline/modules/asciimath-utils/library.xplhttp://www.daisy.org/pipeline/modules/braille/dtbook-to-pef/library.xplhttp://www.daisy.org/pipeline/modules/braille/epub3-to-pef/library.xplhttp://www.daisy.org/pipeline/modules/braille/html-to-pef/library.xplhttp://www.daisy.org/pipeline/modules/braille/zedai-to-pef/library.xplhttp://www.daisy.org/pipeline/modules/braille/common-utils/library.xplhttp://www.daisy.org/pipeline/modules/braille/css-utils/library.xplhttp://www.daisy.org/pipeline/modules/braille/dotify-utils/library.xplhttp://www.daisy.org/pipeline/modules/braille/obfl-utils/library.xplhttp://www.daisy.org/pipeline/modules/braille/pef-utils/library.xplhttp://www.daisy.org/pipeline/modules/file-utils/library.xplhttp://www.daisy.org/pipeline/modules/common-utils/library.xplhttp://www.daisy.org/pipeline/modules/daisy202-utils/library.xplhttp://www.daisy.org/pipeline/modules/daisy202-validator/library.xplhttp://www.daisy.org/pipeline/modules/daisy3-to-daisy202/library.xplhttp://www.daisy.org/pipeline/modules/daisy3-utils/library.xplhttp://www.daisy.org/pipeline/modules/dtbook-break-detection/library.xplhttp://www.daisy.org/pipeline/modules/dtbook-to-daisy3/library.xplhttp://www.daisy.org/pipeline/modules/dtbook-to-odt/library.xplhttp://www.daisy.org/pipeline/modules/dtbook-to-zedai/library.xplhttp://www.daisy.org/pipeline/modules/dtbook-tts/library.xplhttp://www.daisy.org/pipeline/modules/dtbook-utils/library.xplhttp://www.daisy.org/pipeline/modules/epub-utils/library.xplhttp://www.daisy.org/pipeline/modules/epub2-to-epub3/library.xplhttp://www.daisy.org/pipeline/modules/epub3-to-daisy202/library.xplhttp://www.daisy.org/pipeline/modules/epub3-to-daisy3/library.xplhttp://www.daisy.org/pipeline/modules/epub3-to-html/library.xplhttp://www.daisy.org/pipeline/modules/epub3-tts/library.xplhttp://www.daisy.org/pipeline/modules/epubcheck-adapter/library.xplhttp://www.daisy.org/pipeline/modules/fileset-utils/library.xplhttp://www.daisy.org/pipeline/modules/html-break-detection/library.xplhttp://www.daisy.org/pipeline/modules/html-to-dtbook/library.xplhttp://www.daisy.org/pipeline/modules/html-utils/library.xplhttp://www.daisy.org/pipeline/modules/mathml-to-ssml/library.xplhttp://www.daisy.org/pipeline/modules/mediatype-utils/library.xplhttp://www.daisy.org/pipeline/modules/metadata-utils/library.xplhttp://www.daisy.org/pipeline/modules/nlp-common/library.xplhttp://www.daisy.org/pipeline/modules/odf-utils/library.xplhttp://www.daisy.org/pipeline/modules/smil-utils/library.xplhttp://www.daisy.org/pipeline/modules/tts-common/library.xplhttp://www.daisy.org/pipeline/modules/validation-utils/library.xplhttp://www.daisy.org/pipeline/modules/zedai-to-epub3/library.xplhttp://www.daisy.org/pipeline/modules/zedai-to-html/library.xplhttp://www.daisy.org/pipeline/modules/zedai-utils/library.xplhttp://www.daisy.org/pipeline/modules/zip-utils/library.xplorg.daisy.pipeline.modules.braille:braille-commonorg.daisy.pipeline.modules.braille:braille-css-utilsorg.daisy.pipeline.modules.braille:dotify-utilsorg.daisy.pipeline.modules.braille:dtbook-to-peforg.daisy.pipeline.modules.braille:epub3-to-peforg.daisy.pipeline.modules.braille:html-to-peforg.daisy.pipeline.modules.braille:libhyphen-utilsorg.daisy.pipeline.modules.braille:liblouis-utilsorg.daisy.pipeline.modules.braille:obfl-utilsorg.daisy.pipeline.modules.braille:pef-utilsorg.daisy.pipeline.modules.braille:texhyph-utilsorg.daisy.pipeline.modules.braille:zedai-to-pef