-
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>4.8.2</version>
</dependency>
<dependency>
<groupId>org.daisy.pipeline</groupId>
<artifactId>clientlib-java-httpclient</artifactId>
<version>2.0.3</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.
The ScriptRegistry
, DatatypeRegistry
and JobManagerFactory
objects are OSGi services that can be injected as follows:
import org.daisy.pipeline.script.ScriptRegistry;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.osgi.service.component.annotations.ReferencePolicy;
...
@Reference(
name = "ScriptRegistry",
service = ScriptRegistry.class,
cardinality = ReferenceCardinality.MANDATORY,
policy = ReferencePolicy.STATIC
)
public void setScriptRegistry(ScriptRegistry registry) {
...
}
org.daisy.common.calabash
org.daisy.common.fuzzy
org.daisy.common.messaging
org.daisy.common.priority
org.daisy.common.properties
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.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
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/xml-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/liblouis-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-ssml/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/dtbook-validator/library.xpl
http://www.daisy.org/pipeline/modules/epub3-nav-utils/library.xpl
http://www.daisy.org/pipeline/modules/epub3-ocf-utils/library.xpl
http://www.daisy.org/pipeline/modules/epub3-pub-utils/library.xpl
http://www.daisy.org/pipeline/modules/epub3-to-daisy202/xproc/library.xpl
http://www.daisy.org/pipeline/modules/epub3-to-ssml/library.xpl
http://www.daisy.org/pipeline/modules/epub3-tts/library.xpl
http://www.daisy.org/pipeline/modules/epub3-validator/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-utils/library.xpl
http://www.daisy.org/pipeline/modules/mathml-to-ssml/library.xpl
http://www.daisy.org/pipeline/modules/mediaoverlay-utils/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-break-detection/library.xpl
http://www.daisy.org/pipeline/modules/odt-utils/library.xpl
http://www.daisy.org/pipeline/modules/ssml-to-audio/library.xpl
http://www.daisy.org/pipeline/modules/text-to-ssml/library.xpl
http://www.daisy.org/pipeline/modules/tts-helpers/library.xpl
http://www.daisy.org/pipeline/modules/validation-utils/library.xpl
http://www.daisy.org/pipeline/modules/zedai-break-detection/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-to-ssml/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:common-utils
org.daisy.pipeline.modules.braille:css-core
org.daisy.pipeline.modules.braille:css-utils
org.daisy.pipeline.modules.braille:dotify-calabash
org.daisy.pipeline.modules.braille:dotify-core
org.daisy.pipeline.modules.braille:dotify-formatter
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-core
org.daisy.pipeline.modules.braille:libhyphen-saxon
org.daisy.pipeline.modules.braille:libhyphen-utils
org.daisy.pipeline.modules.braille:liblouis-calabash
org.daisy.pipeline.modules.braille:liblouis-core
org.daisy.pipeline.modules.braille:liblouis-formatter
org.daisy.pipeline.modules.braille:liblouis-mathml
org.daisy.pipeline.modules.braille:liblouis-saxon
org.daisy.pipeline.modules.braille:liblouis-tables
org.daisy.pipeline.modules.braille:liblouis-utils
org.daisy.pipeline.modules.braille:obfl-utils
org.daisy.pipeline.modules.braille:pef-calabash
org.daisy.pipeline.modules.braille:pef-core
org.daisy.pipeline.modules.braille:pef-saxon
org.daisy.pipeline.modules.braille:pef-utils
org.daisy.pipeline.modules.braille:texhyph-core
org.daisy.pipeline.modules.braille:texhyph-saxon
org.daisy.pipeline.modules.braille:texhyph-utils
org.daisy.pipeline.modules.braille:xml-to-pef
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