Class SoapSplitClient
- java.lang.Object
 - 
- com.logicaldoc.webservice.soap.client.SoapClient<SplitService>
 - 
- com.logicaldoc.split.webservice.soap.client.SoapSplitClient
 
 
 
- 
- All Implemented Interfaces:
 SplitService
public class SoapSplitClient extends com.logicaldoc.webservice.soap.client.SoapClient<SplitService> implements SplitService
 
- 
- 
Constructor Summary
Constructors Constructor Description SoapSplitClient(String endpoint)SoapSplitClient(String endpoint, int gzipThreshold, boolean log, int timeout) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long[]splitAllPages(String sid, long docId)Splits a PDF document, each page in a different fileLong[]splitSelection(String sid, long docId, String expression)Splits a PDF document in a selection of pagesLong[]splitUsingBarcode(String sid, long docId, String expression, int separator)Splits a PDF document using a barcode as separatorLong[]splitUsingBlankPage(String sid, long docId, int separator)Splits a PDF document using a blank page as separatorLong[]splitUsingText(String sid, long docId, String expression, int separator)Splits a PDF document using a text as separator 
 - 
 
- 
- 
Constructor Detail
- 
SoapSplitClient
public SoapSplitClient(String endpoint, int gzipThreshold, boolean log, int timeout) throws IOException
- Throws:
 IOException
 
- 
SoapSplitClient
public SoapSplitClient(String endpoint) throws IOException
- Throws:
 IOException
 
 - 
 
- 
Method Detail
- 
splitAllPages
public Long[] splitAllPages(String sid, long docId) throws Exception
Description copied from interface:SplitServiceSplits a PDF document, each page in a different file- Specified by:
 splitAllPagesin interfaceSplitService- Parameters:
 sid- identifier of the sessiondocId- identifier of the document- Returns:
 - identifiers of the created segments
 - Throws:
 Exception- error in the server
 
- 
splitSelection
public Long[] splitSelection(String sid, long docId, String expression) throws Exception
Description copied from interface:SplitServiceSplits a PDF document in a selection of pages- Specified by:
 splitSelectionin interfaceSplitService- Parameters:
 sid- identifier of the sessiondocId- identifier of the documentexpression- the selection of pages (e.g.: 1,2,4-6,9)- Returns:
 - identifiers of the created segments
 - Throws:
 Exception- error in the server
 
- 
splitUsingBlankPage
public Long[] splitUsingBlankPage(String sid, long docId, int separator) throws Exception
Description copied from interface:SplitServiceSplits a PDF document using a blank page as separator- Specified by:
 splitUsingBlankPagein interfaceSplitService- Parameters:
 sid- identifier of the sessiondocId- identifier of the documentseparator- how to handle the separator: 0 = skip, 1 = append to current segment, 2 = prepend to next segment- Returns:
 - identifiers of the created segments
 - Throws:
 Exception- error in the server
 
- 
splitUsingBarcode
public Long[] splitUsingBarcode(String sid, long docId, String expression, int separator) throws Exception
Description copied from interface:SplitServiceSplits a PDF document using a barcode as separator- Specified by:
 splitUsingBarcodein interfaceSplitService- Parameters:
 sid- identifier of the sessiondocId- identifier of the documentexpression- regular expression that must be matched by the barcode's value, seePatternseparator- how to handle the separator: 0 = skip, 1 = append to current segment, 2 = prepend to next segment- Returns:
 - identifiers of the created segments
 - Throws:
 Exception- error in the server
 
- 
splitUsingText
public Long[] splitUsingText(String sid, long docId, String expression, int separator) throws Exception
Description copied from interface:SplitServiceSplits a PDF document using a text as separator- Specified by:
 splitUsingTextin interfaceSplitService- Parameters:
 sid- identifier of the sessiondocId- identifier of the documentexpression- regular expression that must be matched by the text, seePatternseparator- how to handle the separator: 0 = skip, 1 = append to current segment, 2 = prepend to next segment- Returns:
 - identifiers of the created segments
 - Throws:
 Exception- error in the server
 
 - 
 
 -