Petals-BC-Filetransfer 5.0.0+

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View Page History
h3. Get Operation

When the _get_ operation is set on the incoming IN message, the component retrieves ONE file from the configured directory and return it as an XML message content. By default, the file is moved to the temporary directory or to the backup directory configured at service unit level.
\\

The name of the file to retrieve is set in the XML IN content of the message.
\\

The IN message looks like :
\\
{code:lang=xml}<?xml version="1.0" encoding="UTF-8"?>
<ver:get xmlns:ver="http://petals.ow2.org/components/filetransfer/version-5">
{code}
The OUT message returned to the consumer is the content of the XML file
\\

The service might return a Fault when an element in the request is missing or if an IO error occurs.
\\

The available exchange patterns is : *InOut*.
h3. GetAsAttachement Operation

When the _getAsAttachment_ operation is set on the incoming IN message, the component retrieve ONE file from the configured directory according to the filename(or filter) filename (or file pattern) set in the XML request. By default, the file is moved to the temporary directory or to the backup directory configured at service unit level.
The retrieved file is set in the OUT message as an attachment.

h3. MGet Operation

When the _mget_ operation is set on the incoming IN message, the component retrieves files from the configured directory, according to the filenames (or filters) file patterns) set in the XML request. By default, the files returned are moved to the temporary directory or to the backup directory configured at service unit level.
There is no recursion, sub folders are ignored.

| backup-directory | The directory where files are moved before being read.Environment variables are supported with the form $\{myEnvVariable\}. | system's temporary directory | {center}No{center} |
| folder | Working directory where files are written or retrieved. Environment variables are supported with the form $\{myEnvVariable\} | | {center}Yes{center} |
| is-read-only | For operation getting files, if set to 'true', files are not moved to the temporary directory or the backup directory | {{false}} | {center}Yes{center} |
{table-plus}