diff --git a/spring-integration-reference/src/adapters.xml b/spring-integration-reference/src/adapters.xml index 1032bac0b0..30b9be394b 100644 --- a/spring-integration-reference/src/adapters.xml +++ b/spring-integration-reference/src/adapters.xml @@ -143,27 +143,6 @@ marshallingHandler = new MarshallingWebServiceHandler(uri, marshaller); Object/XML mapping. -
- Stream Adapters - - Spring Integration also provides adapters for streams. Both ByteStreamSource and - CharacterStreamSource implement the PollableSource - interface. By configuring one of these within a channel-adapter element, the polling period can be configured, - and the Message Bus can automatically detect and schedule them. The byte stream version requires an - InputStream, and the character stream version requires a Reader as - the single constructor argument. The ByteStreamSource also accepts the 'bytesPerMessage' - property to determine how many bytes it will attempt to read into each Message. - - - For target streams, there are also two implementations: ByteStreamTarget and - CharacterStreamTarget. Each requires a single constructor argument - - OutputStream for byte streams or Writer for character streams, - and each provides a second constructor that adds the optional 'bufferSize' property. Since both of these - ultimately implement the MessageTarget interface, they can be referenced from a - channel-adapter configuration as will be described in more detail in - . - -
ApplicationEvent Adapters diff --git a/spring-integration-reference/src/spring-integration-reference.xml b/spring-integration-reference/src/spring-integration-reference.xml index e6f0460f16..5705daa782 100644 --- a/spring-integration-reference/src/spring-integration-reference.xml +++ b/spring-integration-reference/src/spring-integration-reference.xml @@ -44,7 +44,8 @@ - + + diff --git a/spring-integration-reference/src/stream.xml b/spring-integration-reference/src/stream.xml index 9d50367c5d..eb9b7dd30f 100644 --- a/spring-integration-reference/src/stream.xml +++ b/spring-integration-reference/src/stream.xml @@ -6,7 +6,7 @@
Introduction - In many cases application data is obtained from a stream. It is not recommended to send a reference to a Stream as a message payload to a consumer. Instead messages are created from data that is read from an input stream and message payloads are written to an output stream one by one. + In many cases application data is obtained from a stream. It is not recommended to send a reference to a Stream as a message payload to a consumer. Instead messages are created from data that is read from an input stream and message payloads are written to an output stream one by one.
@@ -22,7 +22,7 @@ property to determine how many bytes it will attempt to read into each Message. The default value is 1024 - + @@ -39,11 +39,18 @@ For target streams, there are also two implementations: ByteStreamWritingMessageConsumer and CharacterStreamWritingMessageConsumer. Each requires a single constructor argument - OutputStream for byte streams or Writer for character streams, - and each provides a second constructor that adds the optional 'bufferSize' property. Since both of these + and each provides a second constructor that adds the optional 'bufferSize'. Since both of these ultimately implement the MessageConsumer interface, they can be referenced from a channel-adapter configuration as will be described in more detail in . - + + + + + + + +]]>
@@ -51,14 +58,34 @@
- HttpInvoker namespace support + Stream namespace support + + To reduce the configuration needed for stream related channel adapters there is a namespace defined. The following schema locations are needed to use it. + +]]> + - To configure the inbound gateway you can choose to use the namespace support for it. The following code snippet shows the different configuration options that are supported. - + To configure the inbound channel adapter the following code snippet shows the different configuration options that are supported. + + +]]> - To configure the outbound gateway you can use the namespace support as well. The following code snippet shows the different configuration for an outbound HttpInvoker gateway. - + To configure the outbound channel adapter you can use the namespace support as well. The following code snippet shows the different configuration for an outbound channel adapters. + + + + + + + + ]]>
\ No newline at end of file