camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6677) Allow customization of the JAXB underlying XMLStreamWriter
Date Wed, 04 Sep 2013 12:40:54 GMT

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

Claus Ibsen commented on CAMEL-6677:
------------------------------------

if you configure in xml, then it ought to be
{code}
<bean id="myCustomWriter" class="xxx"/>
{code}

And then in Camel data format something a like
{code}
<dataFormats>
<jaxb id="jaxb" xmlStreamWriter="#myCustomWriter" .../>
...
{code}

Though data formats is a bit different than components but the idea should be the same that
# can be used.
                
> Allow customization of the JAXB underlying XMLStreamWriter
> ----------------------------------------------------------
>
>                 Key: CAMEL-6677
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6677
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jaxb
>    Affects Versions: 2.11.1
>            Reporter: Christian Posta
>            Priority: Minor
>             Fix For: 2.11.2, 2.12.1
>
>         Attachments: CAMEL-6677.patch
>
>
> Right now the jaxb component allows you to filter out non-xml characters. But there might
be use cases where you'd want to do something other than just filter (maybe escape? http://blog.lesc.se/2009/03/escape-illegal-characters-with-jaxb-xml.html
or replace with something else?) the non-xml characters. JAXB has a mechanism to allow pre-processing
of the output of its marshaling and we should expose a way to customize that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message