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.AbstractRestClientConversion 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.DataHandlerconvertDocument(long docId, String fileVersion, String format)longconvertDocumentAndSave(long docId, String fileVersion, String format)voidconvertDocumentToFile(long docId, String fileVersion, String format, File output)voidconvertDocumentToPdf(long docId, String fileVersion)voidconvertFile(File input, File output)javax.activation.DataHandlerconvertFile(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
-
-