You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Svetoslav Neykov (JIRA)" <ji...@apache.org> on 2017/02/14 16:10:42 UTC

[jira] [Created] (BROOKLYN-438) Expose URL builder-like functionality as DSL

Svetoslav Neykov created BROOKLYN-438:
-----------------------------------------

             Summary: Expose URL builder-like functionality as DSL
                 Key: BROOKLYN-438
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-438
             Project: Brooklyn
          Issue Type: Improvement
            Reporter: Svetoslav Neykov


The existing {{BrooklynDslCommon.urlEncode}} function is affected by the problems described in https://issues.apache.org/jira/browse/BROOKLYN-437. 
A nice improvement would be to expose a URL builder as DSL so it's clear which parts of the URL the user wants escaped.

It could like like this in "idiomatic yaml" as suggested by [~aledsage]:
{noformat}
$brooklyn:urlBuilder:
  url: "http://host/path.to.jar"
  user: $brooklyn:external("creds", "artifactory.username")
  password: $brooklyn:external("creds", "artifactory.password")
{noformat}

See https://github.com/apache/brooklyn-server/pull/551 for discussion details.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)