diff --git a/docs/src/reference/docbook/filter.xml b/docs/src/reference/docbook/filter.xml index b31c71189d..2ce0087447 100644 --- a/docs/src/reference/docbook/filter.xml +++ b/docs/src/reference/docbook/filter.xml @@ -31,7 +31,7 @@
- The <filter> Element + Namespace support for Filter - <filter> Element The <filter> element is used to create a Message-selecting endpoint. In addition to "input-channel" and "output-channel" attributes, it requires a "ref". The "ref" may point to a MessageSelector implementation: diff --git a/docs/src/reference/docbook/transformer.xml b/docs/src/reference/docbook/transformer.xml index 108f249878..12e925f523 100644 --- a/docs/src/reference/docbook/transformer.xml +++ b/docs/src/reference/docbook/transformer.xml @@ -28,7 +28,7 @@
- The <transformer> Element + Namespace support for Transformer - <transformer> Element The <transformer> element is used to create a Message-transforming endpoint. In addition to "input-channel" and "output-channel" attributes, it requires a "ref". The "ref" may either point to an Object that contains the @@ -156,7 +156,7 @@ public class Kid{
- The @Transformer Annotation + Annotation support for Transformer - @Transformer The @Transformer annotation can also be added to methods that expect either the Message type or the message payload type. The return value will be handled in the @@ -174,5 +174,22 @@ Order generateOrder(String productId, @Header("customerName") String customer) { }
+ +
+ Header Filter + + Some time your transformation use case might be as simple as removing a few headers. + For this type of use cases Spring Integration provides Header Filter which allows you to specify which header should be + removed from the output Message. + Basically Header Filter is the opposite of Header Enricher + that is discussed in + + ]]> + + As you can see, configuration of Header Filter is quite simple. It is a typical endpoint with input/output channels + and header-names attribute which allows you to specify the names of the headers (delimited by coma if multiple) + that need to be removed. So, in the above example headers with the name 'lastName' and 'state' will be removed. +