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
ConstructorDescriptionRestConversionClient
(String endpoint, String username, String password) RestConversionClient
(String endpoint, String username, String password, 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 FileNotFoundException, IOException, com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException - Throws:
FileNotFoundException
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 FileNotFoundException, IOException, com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException - Throws:
FileNotFoundException
IOException
com.logicaldoc.core.security.authentication.AuthenticationException
FeatureNotEnabledException
com.logicaldoc.webservice.WebserviceException
com.logicaldoc.core.PersistenceException
-