-
Notifications
You must be signed in to change notification settings - Fork 20
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-goDAISY 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.fuzzyorg.daisy.common.messagingorg.daisy.common.priorityorg.daisy.common.saxonorg.daisy.common.shellorg.daisy.common.slf4jorg.daisy.common.staxorg.daisy.common.transformorg.daisy.common.xprocorg.daisy.common.xproc.calabashorg.daisy.common.xsltorg.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.tts
http://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/css-speech/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/text-to-ssml/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.xpl
org.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
- 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