Page History
...
To use the Local File inbound endpoint, you need to download the inbound org.apache.synapse.localfile.class-1.0.0.jar from from https://storepreviewstore.wso2.com/store/ and assets/esbconnector/details/9ac7accf-6535-46c2-853e-9ca75c23cdef and copy the jar to the <ESB_HOME>/repository/components/lib directory.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<inboundEndpoint class="org.wso2.carbon.inbound.localfile.LocalFileOneTimePolling" name="LocalFile" onError="fault" sequence="request" suspend="false"> <parameters> <parameter name="sequential">true</parameter> <parameter name="interval">2000</parameter> <parameter name="coordination">true</parameter> <parameter name="FileURI">/home/Documents/LFC/LFC/Test1/TEST</parameter> <parameter name="ActionAfterProcess">delete</parameter> <parameter name="ProcessBeforeWatch">no</parameter> </parameters> </inboundEndpoint> |
Parameter | Description | Required | Possible Values | Default Value |
---|---|---|---|---|
FileURI | The URI where the files you want to process are located. | Yes | A valid file URI : <path> | N/A |
ContentType | Content type of the files which needs to be processed. | No | Valid content type of files. application/xml or | N/A |
ActionAfterProcess | Whether to move or delete the files after the transport has processed them. | No | MOVE or DELETE | N/A |
MoveFileURI | Where to move the files after processing if the value specified as ActionAfterProcess is MOVE. | No | A valid file URI : <path> | N/A |
ProcessBeforeWatch | Whether to process the directory before watch or not. | No | YES or NO | N/A |