camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine DESSAIGNE (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-11576) camel-catalog is not generating camel-stream URI properly
Date Fri, 21 Jul 2017 14:48:00 GMT
Antoine DESSAIGNE created CAMEL-11576:
-----------------------------------------

             Summary: camel-catalog is not generating camel-stream URI properly
                 Key: CAMEL-11576
                 URL: https://issues.apache.org/jira/browse/CAMEL-11576
             Project: Camel
          Issue Type: Bug
          Components: camel-catalog
            Reporter: Antoine DESSAIGNE


The endpoint URI generation in {{camel-catalog}} doesn't work for the {{camel-stream}} component.
Here is an extract of the {{camel-stream.json}} file with only relevant information for this
bug
{code}
{
 "component": {
    "syntax": "stream:kind",
  },
  "properties": {
    "kind": { "kind": "path", "enum": [ "in", "out", "err", "header", "file", "url" ] },
    "url": { "kind": "parameter" },
  }
}
{code}

The key point is that one of the value for the {{kind}} property that is in the path is {{url}}
which is also query parameter.

For instance the following code
{code}
Map<String, String> map = new LinkedHashMap<>();
map.put("kind", "url");
map.put("url", "http://camel.apache.org");
String uri = catalog.asEndpointUri("stream", map, false);
{code}
will return
{code}
stream:http://camel.apache.org
{code}
instead of
{code}
stream:url?url=http://camel.apache.org
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message