Class RestConversionClient
java.lang.Object
com.logicaldoc.webservice.rest.client.AbstractRestClient<ConversionService>
com.logicaldoc.conversion.webservice.rest.client.RestConversionClient
public class RestConversionClient
extends com.logicaldoc.webservice.rest.client.AbstractRestClient<ConversionService>
Conversion Web Service client.
- Since:
- 7.7.3
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructorsConstructorDescriptionRestConversionClient(String endpoint, String apiKey) RestConversionClient(String endpoint, String apiKey, int timeout) 
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.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) jakarta.activation.DataHandlerconvertFile(String fileName, String format, jakarta.activation.DataHandler fileContent) 
- 
Constructor Details- 
RestConversionClient
- 
RestConversionClient
 
- 
- 
Method Details- 
convertDocumentpublic jakarta.activation.DataHandler convertDocument(long docId, String fileVersion, String format) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException - Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException
- com.logicaldoc.core.security.authorization.PermissionException
- FeatureNotEnabledException
- com.logicaldoc.webservice.WebserviceException
- com.logicaldoc.core.PersistenceException
- IOException
 
- 
convertDocumentToFilepublic void convertDocumentToFile(long docId, String fileVersion, String format, File output) throws IOException, com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException - Throws:
- IOException
- com.logicaldoc.core.security.authentication.AuthenticationException
- com.logicaldoc.core.security.authorization.PermissionException
- FeatureNotEnabledException
- com.logicaldoc.webservice.WebserviceException
- com.logicaldoc.core.PersistenceException
 
- 
convertDocumentAndSavepublic long convertDocumentAndSave(long docId, String fileVersion, String format) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException - Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException
- com.logicaldoc.core.security.authorization.PermissionException
- FeatureNotEnabledException
- com.logicaldoc.webservice.WebserviceException
- com.logicaldoc.core.PersistenceException
- IOException
 
- 
convertDocumentToPdfpublic void convertDocumentToPdf(long docId, String fileVersion) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException - Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException
- com.logicaldoc.core.security.authorization.PermissionException
- FeatureNotEnabledException
- com.logicaldoc.webservice.WebserviceException
- com.logicaldoc.core.PersistenceException
- IOException
 
- 
convertFilepublic jakarta.activation.DataHandler convertFile(String fileName, String format, jakarta.activation.DataHandler fileContent) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException - Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException
- FeatureNotEnabledException
- com.logicaldoc.webservice.WebserviceException
- com.logicaldoc.core.PersistenceException
- IOException
 
- 
convertFilepublic void convertFile(File input, File output) throws IOException, com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException - Throws:
- IOException
- com.logicaldoc.core.security.authentication.AuthenticationException
- FeatureNotEnabledException
- com.logicaldoc.webservice.WebserviceException
- com.logicaldoc.core.PersistenceException
 
 
-