Class RestConversionClient
- java.lang.Object
-
- com.logicaldoc.webservice.rest.client.AbstractRestClient
-
- com.logicaldoc.conversion.webservice.rest.client.RestConversionClient
-
public class RestConversionClient extends com.logicaldoc.webservice.rest.client.AbstractRestClient
Conversion Web Service client.- Since:
- 7.7.3
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description RestConversionClient(String endpoint, String username, String password)
RestConversionClient(String endpoint, String username, String password, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.activation.DataHandler
convertDocument(long docId, String fileVersion, String format)
long
convertDocumentAndSave(long docId, String fileVersion, String format)
void
convertDocumentToFile(long docId, String fileVersion, String format, File output)
void
convertDocumentToPdf(long docId, String fileVersion)
void
convertFile(File input, File output)
javax.activation.DataHandler
convertFile(String fileName, String format, javax.activation.DataHandler fileContent)
-
-
-
Method Detail
-
convertDocument
public javax.activation.DataHandler convertDocument(long docId, String fileVersion, String format) throws Exception
- Throws:
Exception
-
convertDocumentToFile
public void convertDocumentToFile(long docId, String fileVersion, String format, File output) throws Exception
- Throws:
Exception
-
convertDocumentAndSave
public long convertDocumentAndSave(long docId, String fileVersion, String format) throws Exception
- Throws:
Exception
-
convertDocumentToPdf
public void convertDocumentToPdf(long docId, String fileVersion) throws Exception
- Throws:
Exception
-
convertFile
public javax.activation.DataHandler convertFile(String fileName, String format, javax.activation.DataHandler fileContent) throws Exception
- Throws:
Exception
-
-