CSJCurrent en:Handling of Pre-Processing Result
Aus Cryptshare Documentation
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 a 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.
Example
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());
}
}
}
}