@Vitalii, thanks for your help.

I was able to overcome using another approach that also suits me.

After looking at this carefully I've noticed that the "#" in "to" URL is not
that relevant and after all i could just parse part of the url in order to
create the route. After this I've made the redirection with a Processor.

Solution below:

.when(simple("${in.header.CamelHttpPath} contains 'xpto' "))
                        .process(xptoProcessor)


@Component
public class XptoProcessor extends AbstractProcessor {

    @Autowired
    private XptoSettings xptoSettings;

    @Override
    public void process(Exchange exchange) throws Exception {

        super.process(exchange);

        sendRedirect(exchange, xptoSettings.getXptoRedirectionUrl());
    }
}

Note: sendRedirect is a function that I've implemented that will set trigger
a redirection. By doing so, camel bypasses url encoding step and let me
forward to a destination URL that contains an hash "#".

Cheers,
Diogo



--
View this message in context: 
http://camel.465427.n5.nabble.com/Special-characters-in-URL-s-tp5792076p5792111.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to