executionContext.put(ExecutionContext.CLIENT_ID, this.clientId); FileDiscoveryCommand fileDiscoveryCommand = new FileDiscoveryCommand(sourceDir, filenamePattern, baseFileTransferDao, minAge, filterDuplicates, filterOnFilename, filterOnLastModifiedDate,isRecursive);
if (!unzip) executionContext.put(ExecutionContext.FILE_INPUT_STREAM, inputStream); executionContext.put(ExecutionContext.RELATIVE_FILE_PATH_PARAM, fileName); deliveryCommand = new DeliverFileCommand(outputDir, renameExtension, overwrite, createParentDirectory, tempFileName); executionContext.put(ExecutionContext.BATCHED_FILE_PROVIDER, new UnzippingFileProvider(inputStream)); executionContext.put(ExecutionContext.BATCHED_FILE_NAME, fileName); deliveryCommand = new DeliverBatchCommand(outputDir, overwrite);
executionContext.put(ExecutionContext.CLIENT_ID, clientId);
Payload result = null; ExecutionContext executionContext = new ExecutionContext(); executionContext.put(ExecutionContext.CLIENT_ID, clientID); executionContext.put(ExecutionContext.RETRIEVABLE_FILE_PARAM, entry); if (chunking && shouldChunk(entry)) executionContext.put(ExecutionContext.PAYLOAD, result); logger.debug("About to call ChecksumValidatorCommand"); //$NON-NLS-1$
executionContext.put(ExecutionContext.CLIENT_ID, clientID); executionContext.put(ExecutionContext.RETRIEVABLE_FILE_PARAM, entry); if(chunking && shouldChunk(entry)) executionContext.put(ExecutionContext.PAYLOAD, result); logger.debug("About to call ChecksumValidatorCommand"); //$NON-NLS-1$ if(checksum)
executionContext.put(ExecutionContext.PAYLOAD, payload); String tempFilePath; TargetDirectorySelector selector = new FilenameRegexpMatchedTargetDirectorySelector(outputTargets); if(!unzip) executionContext.put(ExecutionContext.FILE_INPUT_STREAM, chunkInputStream); executionContext.put(ExecutionContext.RELATIVE_FILE_PATH_PARAM, fileChunkHeader.getFileName()); executionContext.put(ExecutionContext.BATCHED_FILE_PROVIDER, new UnzippingFileProvider(chunkInputStream)); executionContext.put(ExecutionContext.BATCHED_FILE_NAME, fileChunkHeader.getFileName()); deliveryCommand = new DeliverBatchCommand(outputTarget, overwrite); executionContext.put(ExecutionContext.FILE_CHUNK_HEADER, reconstitutedFileChunkHeader); CleanupChunksCommand cleanupChunksCommand = new CleanupChunksCommand(); executionContext.put(ExecutionContext.BASE_FILE_TRANSFER_MAPPED_RECORD, mappedRecord); executionContext.put(ExecutionContext.BATCHED_FILE_PROVIDER, new UnzippingFileProvider(bais)); executionContext.put(ExecutionContext.BATCHED_FILE_NAME, mappedRecord.getName()); deliveryCommand = new DeliverBatchCommand(outputTarget, overwrite); executionContext.put(ExecutionContext.DELIVERED_FILE_PATH_PARAM, tempFilePath); ChecksumDeliveredCommand checksumDeliveredCommand = new ChecksumDeliveredCommand(); executeCommand(checksumDeliveredCommand, executionContext);
executionContext.put(ExecutionContext.PAYLOAD, payload); String tempFilePath; TargetDirectorySelector selector = new FilenameRegexpMatchedTargetDirectorySelector(outputTargets); if (!unzip) executionContext.put(ExecutionContext.FILE_INPUT_STREAM, chunkInputStream); executionContext.put(ExecutionContext.RELATIVE_FILE_PATH_PARAM, fileChunkHeader.getFileName()); executionContext.put(ExecutionContext.BATCHED_FILE_PROVIDER, new UnzippingFileProvider( chunkInputStream)); executionContext.put(ExecutionContext.BATCHED_FILE_NAME, fileChunkHeader.getFileName()); executionContext.put(ExecutionContext.FILE_CHUNK_HEADER, reconstitutedFileChunkHeader); executionContext.put(ExecutionContext.BASE_FILE_TRANSFER_MAPPED_RECORD, mappedRecord); try executionContext.put(ExecutionContext.BATCHED_FILE_PROVIDER, new UnzippingFileProvider(bais)); executionContext.put(ExecutionContext.BATCHED_FILE_NAME, mappedRecord.getName()); executionContext.put(ExecutionContext.DELIVERED_FILE_PATH_PARAM, tempFilePath); ChecksumDeliveredCommand checksumDeliveredCommand = new ChecksumDeliveredCommand(); executeCommand(checksumDeliveredCommand, executionContext);