-
Notifications
You must be signed in to change notification settings - Fork 21
API Documentation
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
: List available scripts.
org.daisy.pipeline.script.XProcScript
: List available inputs, options and outputs of a script.
org.daisy.pipeline.datatypes.DatatypeRegistry
: Get data types of script options.
org.daisy.pipeline.script.BoundXProcScript
org.daisy.common.xproc.XProcInput
: Specify job inputs/options.
org.daisy.pipeline.job.JobManagerFactory
org.daisy.pipeline.job.JobManager
: Create, delete and queue jobs.
org.daisy.pipeline.job.Job
: Run and monitor jobs and access job results.
org.daisy.common.messaging.MessageAccessor
: Access job messages.
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.shell
org.daisy.common.slf4j
org.daisy.common.stax
org.daisy.common.transform
org.daisy.common.xproc
org.daisy.common.xproc.calabash
org.daisy.common.xslt
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/css-speech/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/text-to-ssml/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
- Home
- Download
-
Help
-
User Guide
- Installation
- Desktop Application
- Web Application
- Pipeline as a Service
- Command Line
-
Scripts
- DAISY 2.02 Validator
- DAISY 2.02 to EPUB 3
- DAISY 3 to DAISY 2.02
- DAISY 3 to EPUB 3
- DTBook Validator
- DTBook to DAISY 3
- DTBook to EPUB3
- DTBook to HTML
- DTBook to ODT
- DTBook to PEF
- DTBook to RTF
- DTBook to ZedAI
- EPUB 2 to EPUB 3
- EPUB 3 Enhancer
- EPUB 3 Validator
- EPUB 3 to DAISY 2.02
- EPUB 3 to DAISY 3
- EPUB 3 to PEF
- EPUB to DAISY
- HTML to DTBook
- HTML to EPUB3
- HTML to PEF
- NIMAS Fileset Validator
- ZedAI to EPUB 3
- ZedAI to HTML
- ZedAI to PEF
- API Documentation
- Issue Tracker
- Troubleshooting
- Forum
- [[Contact|mailto:[email protected]]]
-
User Guide
- Contribute
- DAISY Home