Skip to content

Commit 1f5dbaa

Browse files
artembilangaryrussell
authored andcommitted
SMB: Polishing XSD according latest SI
1 parent 0c70635 commit 1f5dbaa

File tree

10 files changed

+29
-33
lines changed

10 files changed

+29
-33
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* SMB-specific file list filter classes.
3+
*/
4+
package org.springframework.integration.smb.config;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* SMB Namespace support classes.
3+
*/
4+
package org.springframework.integration.smb.filters;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Inbound Channel Adapters implementations for SMB protocol.
3+
*/
4+
package org.springframework.integration.smb.inbound;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Root package of the Spring Integration SMB Module.
3+
*/
4+
package org.springframework.integration.smb;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* SMB Remote Session abstraction support classes.
3+
*/
4+
package org.springframework.integration.smb.session;

spring-integration-smb/src/main/resources/org/springframework/integration/smb/config/spring-integration-smb-0.5.xsd

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<xsd:schema xmlns="http://www.springframework.org/schema/integration/smb"
33
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4-
xmlns:beans="http://www.springframework.org/schema/beans"
54
xmlns:tool="http://www.springframework.org/schema/tool"
65
xmlns:integration="http://www.springframework.org/schema/integration"
76
targetNamespace="http://www.springframework.org/schema/integration/smb"
@@ -11,13 +10,13 @@
1110
<xsd:import namespace="http://www.springframework.org/schema/beans"/>
1211
<xsd:import namespace="http://www.springframework.org/schema/tool"/>
1312
<xsd:import namespace="http://www.springframework.org/schema/integration"
14-
schemaLocation="http://www.springframework.org/schema/integration/spring-integration-2.0.xsd"/>
13+
schemaLocation="http://www.springframework.org/schema/integration/spring-integration.xsd"/>
1514

1615
<xsd:annotation>
1716
<xsd:documentation><![CDATA[
1817
The handler for namespace 'http://www.springframework.org/schema/integration/smb'
1918
is set to 'org.springframework.integration.smb.config.SmbNamespaceHandler'
20-
in file 'spring.handlers'. SmbNamespaceHandler sets the implemenation
19+
in file 'spring.handlers'. SmbNamespaceHandler sets the implementation
2120
of 'inbound-channel-adapter' to class 'SmbInboundChannelAdapterParser'
2221
etc.
2322
]]></xsd:documentation>
@@ -33,6 +32,10 @@
3332
<xsd:complexType>
3433
<xsd:complexContent>
3534
<xsd:extension base="base-smb-adapter-type">
35+
<xsd:all>
36+
<xsd:element ref="integration:poller" minOccurs="0" maxOccurs="1"/>
37+
<xsd:element name="request-handler-advice-chain" type="integration:handlerAdviceChainType" minOccurs="0" maxOccurs="1" />
38+
</xsd:all>
3639
<xsd:attribute name="remote-directory" type="xsd:string">
3740
<xsd:annotation>
3841
<xsd:documentation>
@@ -202,7 +205,7 @@
202205
<xsd:annotation>
203206
<xsd:documentation>
204207
Tells this adapter if local directory must be
205-
auto-created if it doesn''t exist. Default is TRUE.
208+
auto-created if it doesn't exist. Default is TRUE.
206209
</xsd:documentation>
207210
</xsd:annotation>
208211
</xsd:attribute>
@@ -220,7 +223,6 @@
220223
</xsd:element>
221224

222225
<xsd:complexType name="base-smb-adapter-type">
223-
<xsd:attribute name="id" type="xsd:string"/>
224226
<xsd:attribute name="session-factory" type="xsd:string" use="required">
225227
<xsd:annotation>
226228
<xsd:appinfo>
@@ -229,32 +231,10 @@
229231
</tool:annotation>
230232
</xsd:appinfo>
231233
<xsd:documentation><![CDATA[
232-
Reference to a [org.springframework.integration.smb.session.SmbSessionFactory] bean.
233-
]]></xsd:documentation>
234-
</xsd:annotation>
235-
</xsd:attribute>
236-
<xsd:attribute name="cache-sessions" type="xsd:string" default="true">
237-
<xsd:annotation>
238-
<xsd:documentation><![CDATA[
239-
Specify whether the Sessions should be cached. Default is true.
234+
Reference to a org.springframework.integration.smb.session.SmbSessionFactory bean.
240235
]]></xsd:documentation>
241236
</xsd:annotation>
242237
</xsd:attribute>
243-
<xsd:attribute name="channel" use="optional" type="xsd:string">
244-
<xsd:annotation>
245-
<xsd:appinfo>
246-
<tool:annotation kind="ref">
247-
<tool:expected-type type="org.springframework.integration.core.MessageChannel"/>
248-
</tool:annotation>
249-
</xsd:appinfo>
250-
<xsd:documentation>
251-
Identifies channel attached to this adapter. Depending on the
252-
type of the adapter this channel could be the receiving channel
253-
(e.g., outbound-channel-adapter) or channel where messages
254-
will be sent to by this adapter (e.g., inbound-channel-adapter).
255-
</xsd:documentation>
256-
</xsd:annotation>
257-
</xsd:attribute>
258238
<xsd:attribute name="charset" type="xsd:string" default="UTF-8">
259239
<xsd:annotation>
260240
<xsd:documentation>
@@ -263,6 +243,7 @@
263243
</xsd:documentation>
264244
</xsd:annotation>
265245
</xsd:attribute>
246+
<xsd:attributeGroup ref="integration:channelAdapterAttributes" />
266247
</xsd:complexType>
267248

268249
</xsd:schema>

spring-integration-smb/src/test/java/org/springframework/integration/smb/SmbParserInboundTests-context.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
<int-smb:inbound-channel-adapter id="adapterSmb"
2020
session-factory="smbSessionFactory"
21-
cache-sessions="false"
2221
channel="smbIn"
2322
filename-pattern="foo"
2423
local-directory="test-temp/local-10"
@@ -30,7 +29,6 @@
3029

3130
<int-smb:inbound-channel-adapter id="adapterSmb2"
3231
session-factory="smbSessionFactory"
33-
cache-sessions="false"
3432
channel="smbIn"
3533
filter="filter"
3634
local-directory="test-temp"

spring-integration-smb/src/test/java/org/springframework/integration/smb/config/SmbInboundChannelAdapterParserTests-context.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<int-smb:inbound-channel-adapter id="smbInbound"
1818
channel="smbChannel"
1919
session-factory="smbSessionFactory"
20-
cache-sessions="false"
2120
charset="UTF-8"
2221
auto-create-local-directory="true"
2322
delete-remote-files="true"

spring-integration-smb/src/test/java/org/springframework/integration/smb/config/SmbInboundChannelAdapterSample-context.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<int-smb:inbound-channel-adapter id="smbInboundChannelAdapter"
2222
channel="smbInboundChannel"
2323
session-factory="smbSessionFactory"
24-
cache-sessions="true"
2524
charset="UTF-8"
2625
remote-directory="test-temp/remote-4"
2726
remote-file-separator="/"

spring-integration-smb/src/test/java/org/springframework/integration/smb/config/SmbOutboundChannelAdapterParserTests-context.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
<int-smb:outbound-channel-adapter id="smbOutboundChannelAdapter"
2121
channel="smbPubSubChannel"
2222
session-factory="smbSessionFactory"
23-
cache-sessions="false"
2423
remote-directory="test-temp/remote-5"
2524
charset="UTF-8"
2625
remote-file-separator="."

0 commit comments

Comments
 (0)