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 Summary
ConstructorDescriptionRestConversionClient
(String endpoint, String apiKey) RestConversionClient
(String endpoint, String apiKey, int timeout) -
Method Summary
Modifier and TypeMethodDescriptionjavax.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)
-
Constructor Details
-
RestConversionClient
-
RestConversionClient
-
-
Method Details
-
convertDocument
public javax.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
-
convertDocumentToFile
public 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
-
convertDocumentAndSave
public 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
-
convertDocumentToPdf
public 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
-
convertFile
public javax.activation.DataHandler convertFile(String fileName, String format, javax.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
-
convertFile
public 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
-