CSJCurrent en:Handling of Pre-Processing Result: Unterschied zwischen den Versionen
Aus Cryptshare Documentation
Keine Bearbeitungszusammenfassung |
K (Rillingf verschob die Seite CSJBackend en:Handling of Pre-Processing result nach CSJBackend en:Handling of Pre-Processing Result) |
(kein Unterschied)
|
Version vom 7. März 2022, 11:58 Uhr
If the Cryptshare Server using the Pre-Processing of files, the information of the result can be obtained, if processing fails for one or more files.
Output of the Pre-Processing Result
The Pre-Processing result depends on the chosen mode in the server configuration. More information about Pre-Processing can be found here.
The TransferError object contains an List of PreProcessingOutputInfo. This class wraps the following strings:
- transferFileName Gets the preprocessing result file name.
- preProcessingOutput Gets the preprocessing result output message. The content of the message can be configured in the Cryptshare Pre-Processing admin settings area.
public class UploadCompleteHandler implements IUploadCompleteHandler { @Override public void uploadComplete(Map<String, String> urlMappings, Map<String, String> smtpMappings, String serverGenPassword, TransferError transferError, String trackingId) { if (transferError != null && transferError.getPreProcessingOutputs() != null) { for (int i = 0; i < transferError.getPreProcessingOutputs().size(); i++) { final PreProcessingOutputInfo preProcessingOutputInfo = transferError.getPreProcessingOutputs().get(i); System.out.printf( "Pre-Processing result %d\nTransferFileName: '%s'\nPreProcessingOutput: '%s'%n", i, preProcessingOutputInfo.getTransferFileName(), preProcessingOutputInfo.getPreProcessingOutput()); } } } }