forked from spring-projects/spring-integration
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INT-2971: AMPQ 'header-mapper' XSD polishing
* Change expected type from the `HeaderMapper` to the `AmqpHeaderMapper` * Add 'header-mapper' mutually exclusivity failing tests * Change AMQP doc to say about `AmqpHeaderMapper` not `HeaderMapper` JIRA: https://jira.springsource.org/browse/INT-2971
- Loading branch information
1 parent
110957f
commit d306c44
Showing
11 changed files
with
186 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...ntegration/amqp/config/AmqpInboundChannelAdapterParserTests-headerMapper-fail-context.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:amqp="http://www.springframework.org/schema/integration/amqp" | ||
xsi:schemaLocation="http://www.springframework.org/schema/integration/amqp http://www.springframework.org/schema/integration/amqp/spring-integration-amqp.xsd | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | ||
|
||
<bean id="amqpHeaderMapper" class="org.springframework.integration.amqp.support.DefaultAmqpHeaderMapper"/> | ||
|
||
<amqp:inbound-channel-adapter id="rabbitInbound" queue-names="test.queue" | ||
mapped-request-headers="*" | ||
header-mapper="amqpHeaderMapper"/> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ework/integration/amqp/config/AmqpInboundGatewayParserTests-headerMapper-fail-context.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:amqp="http://www.springframework.org/schema/integration/amqp" | ||
xmlns:int="http://www.springframework.org/schema/integration" | ||
xsi:schemaLocation="http://www.springframework.org/schema/integration/amqp http://www.springframework.org/schema/integration/amqp/spring-integration-amqp.xsd | ||
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | ||
|
||
<bean id="amqpHeaderMapper" class="org.springframework.integration.amqp.support.DefaultAmqpHeaderMapper"/> | ||
|
||
<amqp:inbound-gateway request-channel="requests" queue-names="test" | ||
mapped-request-headers="foo*, STANDARD_REQUEST_HEADERS" | ||
mapped-reply-headers="bar*" | ||
header-mapper="amqpHeaderMapper"/> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...tegration/amqp/config/AmqpOutboundChannelAdapterParserTests-headerMapper-fail-context.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:amqp="http://www.springframework.org/schema/integration/amqp" | ||
xsi:schemaLocation="http://www.springframework.org/schema/integration/amqp http://www.springframework.org/schema/integration/amqp/spring-integration-amqp.xsd | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | ||
|
||
<bean id="amqpHeaderMapper" class="org.springframework.integration.amqp.support.DefaultAmqpHeaderMapper"/> | ||
|
||
<amqp:outbound-channel-adapter id="rabbitOutbound" exchange-name="test.queue" | ||
mapped-request-headers="foo*" | ||
header-mapper="amqpHeaderMapper"/> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...work/integration/amqp/config/AmqpOutboundGatewayParserTests-headerMapper-fail-context.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:amqp="http://www.springframework.org/schema/integration/amqp" | ||
xmlns:int="http://www.springframework.org/schema/integration" | ||
xmlns:rabbit="http://www.springframework.org/schema/rabbit" | ||
xsi:schemaLocation="http://www.springframework.org/schema/integration/amqp http://www.springframework.org/schema/integration/amqp/spring-integration-amqp.xsd | ||
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd | ||
http://www.springframework.org/schema/rabbit http://www.springframework.org/schema/rabbit/spring-rabbit.xsd | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | ||
|
||
<bean id="amqpHeaderMapper" class="org.springframework.integration.amqp.support.DefaultAmqpHeaderMapper"/> | ||
|
||
<amqp:outbound-gateway request-channel="toRabbit0" | ||
mapped-request-headers="foo*, STANDARD_REQUEST_HEADERS" | ||
mapped-reply-headers="bar*" | ||
header-mapper="amqpHeaderMapper"/> | ||
|
||
|
||
</beans> |
Oops, something went wrong.