[
https://issues.apache.org/jira/browse/CAMEL-13214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christoph Giera updated CAMEL-13214:
------------------------------------
Description:
Currently it's not possible to change/customize the headerFilterStrategy for
all camel-mail endpoints because it has to be configured on endpoint level.
In the cxf component it's possible to configure it on component level too, so
it's possible to provide a global headerFilterStrategy:
Example:
{noformat}
CxfComponent comp = camelContext.getComponent("cxf",
CxfComponent.class);
CxfHeaderFilterStrategy strategy = new
CxfHeaderFilterStrategy();
strategy.setOutFilterPattern(
"<customized>");
comp.setHeaderFilterStrategy(strategy);{noformat}
It would be an improvement to add the headerFilterStrategy option also to
component level.
was:
Currently it's not possible to change/customize the headerFilterStrategy for
all camel-mail endpoints because it has to be configured on endpoint level.
In the cxf component it's possible to configure it on component level, so it's
possible to provide a global headerFilterStrategy:
Example:
{noformat}
CxfComponent comp = camelContext.getComponent("cxf",
CxfComponent.class);
CxfHeaderFilterStrategy strategy = new
CxfHeaderFilterStrategy();
strategy.setOutFilterPattern(
"<customized>");
comp.setHeaderFilterStrategy(strategy);{noformat}
It would be an improvement to move the headerFilterStrategy from endpoint to
component level.
> camel-mail: Add headerFilterStrategy option to component level
> --------------------------------------------------------------
>
> Key: CAMEL-13214
> URL: https://issues.apache.org/jira/browse/CAMEL-13214
> Project: Camel
> Issue Type: Improvement
> Components: camel-mail
> Affects Versions: 2.20.2
> Reporter: Christoph Giera
> Priority: Minor
>
> Currently it's not possible to change/customize the headerFilterStrategy for
> all camel-mail endpoints because it has to be configured on endpoint level.
> In the cxf component it's possible to configure it on component level too, so
> it's possible to provide a global headerFilterStrategy:
> Example:
> {noformat}
> CxfComponent comp = camelContext.getComponent("cxf",
> CxfComponent.class);
> CxfHeaderFilterStrategy strategy = new
> CxfHeaderFilterStrategy();
> strategy.setOutFilterPattern(
> "<customized>");
> comp.setHeaderFilterStrategy(strategy);{noformat}
> It would be an improvement to add the headerFilterStrategy option also to
> component level.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)