INT-1641, INT-1614 added support for 'filename-regex' for the FTP and SFTP inbound channel adapters

This commit is contained in:
Mark Fisher
2010-11-22 01:21:07 -05:00
parent bcc919fed7
commit 7ec046ad3f
8 changed files with 60 additions and 27 deletions

View File

@@ -42,4 +42,9 @@ public class FtpInboundChannelAdapterParser extends AbstractRemoteFileInboundCha
return BASE_PACKAGE + ".filters.FtpSimplePatternFileListFilter";
}
@Override
protected String getRegexPatternFileListFilterClassname() {
return BASE_PACKAGE + ".filters.FtpRegexPatternFileListFilter";
}
}

View File

@@ -55,6 +55,7 @@
<xsd:element ref="integration:poller" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="filename-pattern" type="xsd:string"/>
<xsd:attribute name="filename-regex" type="xsd:string"/>
<xsd:attribute name="filter" type="xsd:string">
<xsd:annotation>
<xsd:appinfo>

View File

@@ -16,7 +16,7 @@
charset="UTF-8"
auto-create-local-directory="true"
delete-remote-files="true"
filename-pattern=".?txt"
filename-pattern="*.txt"
local-directory="."
remote-directory="foo/bar">
<int:poller fixed-rate="1000"/>

View File

@@ -35,7 +35,7 @@
charset="UTF-8"
auto-create-local-directory="true"
delete-remote-files="true"
filename-pattern=".?txt"
filename-regex="[0-9]+\.txt"
local-directory="."
remote-directory="foo/bar">
<int:poller fixed-rate="1000"/>