public class DocumentManager extends Object
| Constructor and Description |
|---|
DocumentManager(RestSession session)
Initializes a document manager for the given
RestSession. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
downloadDocument(RestDocument document,
OutputStream outputStream)
Downloads
SoapDocument or RestDocument to target path |
RestDocument |
getDocument(DocumentFileBean documentFileBean)
Uploads the given
DocumentFileBean to the webPDF server and returns the RestDocument reference
to the uploaded resource. |
RestDocument |
uploadDocument(File file)
Uploads the given file to the webPDF server and returns the
RestDocument reference to the uploaded files. |
public DocumentManager(RestSession session)
RestSession.session - The RestSession a document manager shall be created for.public boolean downloadDocument(RestDocument document, OutputStream outputStream) throws ResultException
SoapDocument or RestDocument to target pathdocument - SoapDocument or RestDocument instanceoutputStream - OutputStream for downloaded contentResultException - a ResultExceptionpublic RestDocument uploadDocument(File file) throws IOException
RestDocument reference to the uploaded files.file - The file, that shall be uploaded for further processing.RestDocument referencing the uploaded document.IOException - an IOExceptionpublic RestDocument getDocument(DocumentFileBean documentFileBean) throws ResultException
DocumentFileBean to the webPDF server and returns the RestDocument reference
to the uploaded resource.documentFileBean - The DocumentFileBean, that shall be uploaded for further processing.RestDocument referencing the uploaded resource.ResultException - a ResultExceptionCopyright © 2017–2019 SoftVision Development GmbH, Fulda, Germany. All rights reserved.