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

Aus Cryptshare Documentation
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
 
(3 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 3: Zeile 3:
{{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]].}}
{{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:
The '''TransferError''' object contains a List of '''PreProcessingOutputInfo'''. This class wraps the following strings:


# transferFileName Gets the preprocessing result file name.
# 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.
# 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 {
  public class UploadCompleteHandler implements IUploadCompleteHandler {
  @Override
  @Override

Aktuelle Version vom 7. März 2022, 14:21 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 a 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.

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());
			}
		}
	}
}