From de0c13f882328f43a9764ece91ce11ace4a20d7f Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Fri, 19 Aug 2016 12:17:13 -0400 Subject: [PATCH] INT-4099: Fix `closableResource` typo JIRA: https://jira.spring.io/browse/INT-4099 --- src/reference/asciidoc/ftp.adoc | 8 ++++---- src/reference/asciidoc/sftp.adoc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/reference/asciidoc/ftp.adoc b/src/reference/asciidoc/ftp.adoc index 03af5607a6..c2cb5c8eab 100644 --- a/src/reference/asciidoc/ftp.adoc +++ b/src/reference/asciidoc/ftp.adoc @@ -425,7 +425,7 @@ This adapter produces message with payloads of type `InputStream`, allowing file local file system. Since the session remains open, the consuming application is responsible for closing the session when the file has been consumed. -The session is provided in the `closeableResource` header (`IntegrationMessageHeaderAccessor.CLOSEABLE_RESOURCE`). +The session is provided in the `IntegrationMessageHeaderAccessor.CLOSEABLE_RESOURCE` header. Standard framework components, such as the `FileSplitter` and `StreamTransformer` will automatically close the session. See <> and <> for more information about these components. @@ -702,7 +702,7 @@ For text files, a common use case is to combine this operation with a <>. When consuming remote files as streams, the user is responsible for closing the `Session` after the stream is consumed. -For convenience, the `Session` is provided in the `closeableResource` header, a convenience method is provided on the +For convenience, the `Session` is provided in the `IntegrationMessageHeaderAccessor.CLOSEABLE_RESOURCE` header, a convenience method is provided on the `IntegrationMessageHeaderAccessor`: [source, java] @@ -714,7 +714,7 @@ if (closeable != null) { ---- Note: In previous releases the session was in the `file_remoteSession` header, but this is deprecated - use -`closableResource` instead. +`IntegrationMessageHeaderAccessor.CLOSEABLE_RESOURCE` instead. Framework components such as the <> and <> will automatically close the session after the data is transferred. @@ -740,7 +740,7 @@ You can either do that in your custom code, or route a copy of the message to a [source, xml] ---- + expression="headers[T(org.springframework.integration.IntegrationMessageHeaderAccessor).CLOSEABLE_RESOURCE].close()" /> ---- *mget* diff --git a/src/reference/asciidoc/sftp.adoc b/src/reference/asciidoc/sftp.adoc index 8d3c4ac5d6..ca8018d61d 100644 --- a/src/reference/asciidoc/sftp.adoc +++ b/src/reference/asciidoc/sftp.adoc @@ -534,7 +534,7 @@ This adapter produces message with payloads of type `InputStream`, allowing file local file system. Since the session remains open, the consuming application is responsible for closing the session when the file has been consumed. -The session is provided in the `closeableResource` header (`IntegrationMessageHeaderAccessor.CLOSEABLE_RESOURCE`). +The session is provided in the `IntegrationMessageHeaderAccessor.CLOSEABLE_RESOURCE` header. Standard framework components, such as the `FileSplitter` and `StreamTransformer` will automatically close the session. See <> and <> for more information about these components. @@ -791,7 +791,7 @@ For text files, a common use case is to combine this operation with a <>. When consuming remote files as streams, the user is responsible for closing the `Session` after the stream is consumed. -For convenience, the `Session` is provided in the `closeableResource` header, a convenience method is provided on the +For convenience, the `Session` is provided in the `IntegrationMessageHeaderAccessor.CLOSEABLE_RESOURCE` header, a convenience method is provided on the `IntegrationMessageHeaderAccessor`: [source, java] @@ -803,7 +803,7 @@ if (closeable != null) { ---- Note: In previous releases the session was in the `file_remoteSession` header, but this is deprecated - use -`closableResource` instead. +`IntegrationMessageHeaderAccessor.CLOSEABLE_RESOURCE` instead. Framework components such as the <> and <> will automatically close the session after the data is transferred. @@ -829,7 +829,7 @@ You can either do that in your custom code, or route a copy of the message to a [source, xml] ---- + expression="headers[T(org.springframework.integration.IntegrationMessageHeaderAccessor).CLOSEABLE_RESOURCE].close()" /> ---- *mget*