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.ScriptRegistry
org.daisy.pipeline.script.Script
org.daisy.pipeline.datatypes.DatatypeRegistry
org.daisy.pipeline.script.BoundScript
org.daisy.pipeline.job.JobManagerFactory
org.daisy.pipeline.job.Job
Providers of the ScriptRegistry
, DatatypeRegistry
and
JobManagerFactory
services can be loaded using the
ServiceLoader
mechanism or using OSGi.
org.daisy.common.fuzzy
org.daisy.common.messaging
org.daisy.common.priority
org.daisy.common.saxon
org.daisy.common.saxon.xslt
org.daisy.common.shell
org.daisy.common.slf4j
org.daisy.common.stax
org.daisy.common.transform
org.daisy.common.xpath.saxon
org.daisy.common.xproc
org.daisy.common.xproc.calabash
org.daisy.common.zip
org.daisy.pipeline.braille.common
org.daisy.pipeline.client.filestorage
org.daisy.pipeline.client.http
org.daisy.pipeline.client.models
org.daisy.pipeline.client.models.datatypes
org.daisy.pipeline.client.utils
org.daisy.pipeline.client
org.daisy.pipeline.clients
org.daisy.pipeline.datatypes
org.daisy.pipeline.event
org.daisy.pipeline.job
org.daisy.pipeline.modules
org.daisy.pipeline.script
org.daisy.pipeline.tts
http://www.daisy.org/pipeline/modules/asciimath-utils/library.xpl
http://www.daisy.org/pipeline/modules/braille/dtbook-to-pef/library.xpl
http://www.daisy.org/pipeline/modules/braille/epub3-to-pef/library.xpl
http://www.daisy.org/pipeline/modules/braille/html-to-pef/library.xpl
http://www.daisy.org/pipeline/modules/braille/zedai-to-pef/library.xpl
http://www.daisy.org/pipeline/modules/braille/common-utils/library.xpl
http://www.daisy.org/pipeline/modules/braille/css-utils/library.xpl
http://www.daisy.org/pipeline/modules/braille/dotify-utils/library.xpl
http://www.daisy.org/pipeline/modules/braille/obfl-utils/library.xpl
http://www.daisy.org/pipeline/modules/braille/pef-utils/library.xpl
http://www.daisy.org/pipeline/modules/file-utils/library.xpl
http://www.daisy.org/pipeline/modules/common-utils/library.xpl
http://www.daisy.org/pipeline/modules/daisy202-utils/library.xpl
http://www.daisy.org/pipeline/modules/daisy202-validator/library.xpl
http://www.daisy.org/pipeline/modules/daisy3-to-daisy202/library.xpl
http://www.daisy.org/pipeline/modules/daisy3-utils/library.xpl
http://www.daisy.org/pipeline/modules/dtbook-break-detection/library.xpl
http://www.daisy.org/pipeline/modules/dtbook-to-daisy3/library.xpl
http://www.daisy.org/pipeline/modules/dtbook-to-odt/library.xpl
http://www.daisy.org/pipeline/modules/dtbook-to-zedai/library.xpl
http://www.daisy.org/pipeline/modules/dtbook-tts/library.xpl
http://www.daisy.org/pipeline/modules/dtbook-utils/library.xpl
http://www.daisy.org/pipeline/modules/epub-utils/library.xpl
http://www.daisy.org/pipeline/modules/epub2-to-epub3/library.xpl
http://www.daisy.org/pipeline/modules/epub3-to-daisy202/library.xpl
http://www.daisy.org/pipeline/modules/epub3-to-daisy3/library.xpl
http://www.daisy.org/pipeline/modules/epub3-to-html/library.xpl
http://www.daisy.org/pipeline/modules/epub3-tts/library.xpl
http://www.daisy.org/pipeline/modules/epubcheck-adapter/library.xpl
http://www.daisy.org/pipeline/modules/fileset-utils/library.xpl
http://www.daisy.org/pipeline/modules/html-break-detection/library.xpl
http://www.daisy.org/pipeline/modules/html-to-dtbook/library.xpl
http://www.daisy.org/pipeline/modules/html-utils/library.xpl
http://www.daisy.org/pipeline/modules/mathml-to-ssml/library.xpl
http://www.daisy.org/pipeline/modules/mediatype-utils/library.xpl
http://www.daisy.org/pipeline/modules/metadata-utils/library.xpl
http://www.daisy.org/pipeline/modules/nlp-common/library.xpl
http://www.daisy.org/pipeline/modules/odf-utils/library.xpl
http://www.daisy.org/pipeline/modules/smil-utils/library.xpl
http://www.daisy.org/pipeline/modules/tts-common/library.xpl
http://www.daisy.org/pipeline/modules/validation-utils/library.xpl
http://www.daisy.org/pipeline/modules/zedai-to-epub3/library.xpl
http://www.daisy.org/pipeline/modules/zedai-to-html/library.xpl
http://www.daisy.org/pipeline/modules/zedai-utils/library.xpl
http://www.daisy.org/pipeline/modules/zip-utils/library.xpl
org.daisy.pipeline.modules.braille:braille-common
org.daisy.pipeline.modules.braille:braille-css-utils
org.daisy.pipeline.modules.braille:dotify-utils
org.daisy.pipeline.modules.braille:dtbook-to-pef
org.daisy.pipeline.modules.braille:epub3-to-pef
org.daisy.pipeline.modules.braille:html-to-pef
org.daisy.pipeline.modules.braille:libhyphen-utils
org.daisy.pipeline.modules.braille:liblouis-utils
org.daisy.pipeline.modules.braille:obfl-utils
org.daisy.pipeline.modules.braille:pef-utils
org.daisy.pipeline.modules.braille:texhyph-utils
org.daisy.pipeline.modules.braille:zedai-to-pef