CSJCurrent en:Handling of Pre-Processing Result: Unterschied zwischen den Versionen

Aus Cryptshare Documentation
Wechseln zu:Navigation, Suche
(Die Seite wurde neu angelegt: „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.“)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
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.
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.
{{InfoBox|title=Output of the Pre-Processing Result|content=The Pre-Processing result depends on the chosen mode in the server configuration. More information about Pre-Processing can be found [[CSSCurrent_en:Pre_Processing|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());
}
}
}
}

Version vom 7. März 2022, 13:57 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:

  1. transferFileName Gets the preprocessing result file name.
  2. 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());
			}
		}
	}
}