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/09 14:40:25 UTC

[jira] [Comment Edited] (CAMEL-9848) Add mapFormEncoded option

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

Claus Ibsen edited comment on CAMEL-9848 at 4/9/16 12:40 PM:
-------------------------------------------------------------

Andrea, this is to add a new option which you did recently. And then in line 224 in DefaultHttpBinding then use that option to only map those form encoded body if this new option is enabled.

And then move that code block to a new private method named readFormBody, so we have these 3 in the top of the file

{code}
        if (mapHttpMessageHeaders) {
            readHeaders(request, message);
        }
        if (mapHttpMessageBody) {
            readBody(request, message);
        }
        if (mapHttpMessageFormUrlEncodedBody) {
            readFormUrlEncodedBody(request, message);
        }
{code}



was (Author: davsclaus):
Andrea, this is to add a new option which you did recently. And then in line 224 in DefaultHttpBinding then use that option to only map those form encoded body if this new option is enabled.

And then move that code block to a new private method named readFormBody, so we have these 3 in the top of the file

{code}
        if (mapHttpMessageHeaders) {
            readHeaders(request, message);
        }
        if (mapHttpMessageBody) {
            readBody(request, message);
        }
        if (mapFormUrlEncodedBody) {
            readFormUrlEncodedBody(request, message);
        }
{code}


> Add mapFormEncoded option
> -------------------------
>
>                 Key: CAMEL-9848
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9848
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jetty
>            Reporter: Claus Ibsen
>            Assignee: Andrea Cosentino
>             Fix For: 2.18.0
>
>
> Like CAMEL-9833 we should add an option to turn on|off whether we should map www-url-encoded forms from body key=value pairs to Camel message headers.
> You may want to turn this off and leave the body as-is.



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