Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6741717956 for ; Mon, 2 Feb 2015 20:55:34 +0000 (UTC) Received: (qmail 32786 invoked by uid 500); 2 Feb 2015 20:55:35 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 32754 invoked by uid 500); 2 Feb 2015 20:55:35 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 32744 invoked by uid 99); 2 Feb 2015 20:55:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2015 20:55:35 +0000 Date: Mon, 2 Feb 2015 20:55:35 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-8309) Camel XML DSL - Allow to specify uri attributes in multi lines to make long urs easier to read and maintain MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14301911#comment-14301911 ] Claus Ibsen commented on CAMEL-8309: ------------------------------------ Notice its only the attribute with name uri / url that is supported. We may want to extend this to resourceUri or some other variations that enrich / pollEnrich may use in the EIPs. Or maybe just check if the attribute has uri as part of its name? > Camel XML DSL - Allow to specify uri attributes in multi lines to make long urs easier to read and maintain > ----------------------------------------------------------------------------------------------------------- > > Key: CAMEL-8309 > URL: https://issues.apache.org/jira/browse/CAMEL-8309 > Project: Camel > Issue Type: Improvement > Components: camel-blueprint, camel-spring > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.15.0 > > > If you have very long uris in routes, then in Java DSL you can just split the code into new lines, as its just Java code. > But in XML you cannot do that. So we should allow the uri attribute to have new lines, and then when parsing the CamelContext we remove those whitespace noise, so the uri is one line. > The parser does this partly when you obtain the attribute. All new lines, tabs etc is represented as a space. But then the url has double spaces, we need to trim, in the parser. > You will still have to use & to separate the options though > Here is a very little example with only 2 options, but just imagine if the url was longer > {code} > > > > > > > > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)