Class SoapConversionClient
java.lang.Object
com.logicaldoc.webservice.soap.client.SoapClient<ConversionService>
com.logicaldoc.conversion.webservice.soap.client.SoapConversionClient
- All Implemented Interfaces:
- ConversionService
public class SoapConversionClient
extends com.logicaldoc.webservice.soap.client.SoapClient<ConversionService>
implements ConversionService
Conversion Web Service client.
- Since:
- 7.7.3
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructorsConstructorDescriptionSoapConversionClient(String endpoint) SoapConversionClient(String endpoint, int gzipThreshold, boolean log, int timeout) 
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.activation.DataHandlerconvertDocument(String sid, long docId, String fileVersion, String format) Converts an existing document and saves the generated conversion in LogicalDOC.longconvertDocumentAndSave(String sid, long docId, String fileVersion, String format) Converts an existing document and saves the generated conversion in LogicalDOC.voidconvertDocumentToFile(String sid, long docId, String fileVersion, String format, File output) voidconvertDocumentToPdf(String sid, long docId, String fileVersion) Creates the PDF conversion of the given document.voidconvertFile(String sid, File input, File output) jakarta.activation.DataHandlerconvertFile(String sid, String fileName, String format, jakarta.activation.DataHandler fileContent) Converts a given file and returns the conversion.
- 
Constructor Details- 
SoapConversionClient
- 
SoapConversionClient
 
- 
- 
Method Details- 
convertDocumentToFilepublic void convertDocumentToFile(String sid, long docId, String fileVersion, String format, File output) 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
 
- 
convertDocumentpublic jakarta.activation.DataHandler convertDocument(String sid, 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 Description copied from interface:ConversionServiceConverts an existing document and saves the generated conversion in LogicalDOC.- Specified by:
- convertDocumentin interface- ConversionService
- Parameters:
- sid- Session identifier
- docId- The document id
- fileVersion- The file version
- format- The output conversion format
- Returns:
- The conversion's binary
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticated
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissions
- FeatureNotEnabledException- The required feature is not enabled
- com.logicaldoc.webservice.WebserviceException- Error in the webservice layer
- com.logicaldoc.core.PersistenceException- Error in the data layer
- IOException- I/O error
 
- 
convertDocumentAndSavepublic long convertDocumentAndSave(String sid, 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 Description copied from interface:ConversionServiceConverts an existing document and saves the generated conversion in LogicalDOC.- Specified by:
- convertDocumentAndSavein interface- ConversionService
- Parameters:
- sid- Session identifier
- docId- The document id
- fileVersion- The file version
- format- The output conversion format
- Returns:
- the ID of the generated conversion file
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticated
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissions
- FeatureNotEnabledException- The required feature is not enabled
- com.logicaldoc.webservice.WebserviceException- Error in the webservice layer
- com.logicaldoc.core.PersistenceException- Error in the data layer
- IOException- I/O error
 
- 
convertDocumentToPdfpublic void convertDocumentToPdf(String sid, 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 Description copied from interface:ConversionServiceCreates the PDF conversion of the given document. If the conversion was already created, nothing will happen.- Specified by:
- convertDocumentToPdfin interface- ConversionService
- Parameters:
- sid- Session identifier
- docId- The document id
- fileVersion- The specific file version(it can be empty)
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticated
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissions
- FeatureNotEnabledException- The required feature is not enabled
- com.logicaldoc.webservice.WebserviceException- Error in the webservice layer
- com.logicaldoc.core.PersistenceException- Error in the data layer
- IOException- I/O error
 
- 
convertFilepublic jakarta.activation.DataHandler convertFile(String sid, 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 Description copied from interface:ConversionServiceConverts a given file and returns the conversion.- Specified by:
- convertFilein interface- ConversionService
- Parameters:
- sid- Session identifier
- fileName- Name of the source file
- format- The output conversion format
- fileContent- The content of the input file
- Returns:
- the raw content of the converted file
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticated
- FeatureNotEnabledException- The required feature is not enabled
- com.logicaldoc.webservice.WebserviceException- Error in the webservice layer
- com.logicaldoc.core.PersistenceException- Error in the data layer
- IOException- I/O error
 
- 
convertFilepublic void convertFile(String sid, File input, File output) 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
 
 
-