Repository: camel Updated Branches: refs/heads/camel-2.19.x 491552942 -> ab1a540e4
CAMEL-11748 - Camel-Undertow: transferException option doesn't work - improved docs Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ab1a540e Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ab1a540e Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ab1a540e Branch: refs/heads/camel-2.19.x Commit: ab1a540e4beacc7562d7abfb2c318c3db6284f8b Parents: 4915529 Author: Andrea Cosentino <anco...@gmail.com> Authored: Tue Sep 5 19:50:28 2017 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Tue Sep 5 19:50:52 2017 +0200 ---------------------------------------------------------------------- .../camel-undertow/src/main/docs/undertow-component.adoc | 2 +- .../apache/camel/component/undertow/UndertowEndpoint.java | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/ab1a540e/components/camel-undertow/src/main/docs/undertow-component.adoc ---------------------------------------------------------------------- diff --git a/components/camel-undertow/src/main/docs/undertow-component.adoc b/components/camel-undertow/src/main/docs/undertow-component.adoc index cf5883f..e41c7e2 100644 --- a/components/camel-undertow/src/main/docs/undertow-component.adoc +++ b/components/camel-undertow/src/main/docs/undertow-component.adoc @@ -91,7 +91,7 @@ with the following path and query parameters: | **reuseAddresses** (producer) | Setting to facilitate socket multiplexing | true | Boolean | **tcpNoDelay** (producer) | Setting to improve TCP protocol performance | true | Boolean | **throwExceptionOnFailure** (producer) | Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardless of the HTTP status code. | true | Boolean -| **transferException** (producer) | Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardless of the HTTP status code. | false | Boolean +| **transferException** (producer) | If enabled and an Exchange failed processing on the consumer side and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type. On the producer side the exception will be deserialized and thrown as is instead of the HttpOperationFailedException. The caused exception is required to be serialized. This is by default turned off. If you enable this then be aware that Java will deserialize the incoming data from the request to Java and that can be a potential security risk. | false | Boolean | **headerFilterStrategy** (advanced) | To use a custom HeaderFilterStrategy to filter header to and from Camel message. | | HeaderFilterStrategy | **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean | **undertowHttpBinding** (advanced) | To use a custom UndertowHttpBinding to control the mapping between Camel message and undertow. | | UndertowHttpBinding http://git-wip-us.apache.org/repos/asf/camel/blob/ab1a540e/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java index 53a6bc0..1f019fc 100644 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java +++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java @@ -222,8 +222,12 @@ public class UndertowEndpoint extends DefaultEndpoint implements AsyncEndpoint, } /** - * Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. - * This allows you to get all responses regardless of the HTTP status code. + * If enabled and an Exchange failed processing on the consumer side and if the caused Exception + * was send back serialized in the response as a application/x-java-serialized-object content type. + * On the producer side the exception will be deserialized and thrown as is instead of the HttpOperationFailedException. The caused exception is required to be serialized. + * This is by default turned off. If you enable this + * then be aware that Java will deserialize the incoming data from the request to Java and that can be a potential security risk. + * */ public void setTransferException(Boolean transferException) { this.transferException = transferException;