You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/04/07 11:27:25 UTC

[jira] [Commented] (CAMEL-9833) Add mapHttpMessage option to allow to turn off mapping by default

    [ https://issues.apache.org/jira/browse/CAMEL-9833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15229987#comment-15229987 ] 

Claus Ibsen commented on CAMEL-9833:
------------------------------------

We should likely add two options so you can map the headers and not the body, eg if you want to do CBR based on HTTP headers.

mapHttpMessageBody=true|false
mapHttpMessageHeaders=true|false

Then they can be true by default as today.

Then in org.apache.camel.http.common.DefaultHttpBinding#readRequest we should not force loading the message body and headers if they are false.

> Add mapHttpMessage option to allow to turn off mapping by default
> -----------------------------------------------------------------
>
>                 Key: CAMEL-9833
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9833
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jetty
>            Reporter: Claus Ibsen
>             Fix For: 2.18.0
>
>
> Like the mapMailMessage option in camel-mail, we should have an option to turn off the auto mapping from http request to camel message body / headers.
> You may want to turn this off if you do proxy routes where you just want to route the request to another endpoint without the need to access the body/headers during routing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)