You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by dr...@apache.org on 2017/02/27 09:40:15 UTC
[1/2] brooklyn-docs git commit: Adds doc for urlEncode DSL
Repository: brooklyn-docs
Updated Branches:
refs/heads/master 9ce71a4a0 -> 9ffd04919
Adds doc for urlEncode DSL
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/31382c8d
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/31382c8d
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/31382c8d
Branch: refs/heads/master
Commit: 31382c8d420aee34fa56fc7b8edf034b5f4292bf
Parents: 9ce71a4
Author: Aled Sage <al...@gmail.com>
Authored: Wed Feb 8 17:14:51 2017 +0000
Committer: Aled Sage <al...@gmail.com>
Committed: Mon Feb 27 09:31:47 2017 +0000
----------------------------------------------------------------------
guide/yaml/yaml-reference.md | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/31382c8d/guide/yaml/yaml-reference.md
----------------------------------------------------------------------
diff --git a/guide/yaml/yaml-reference.md b/guide/yaml/yaml-reference.md
index 8b8ca8f..6e7df7a 100644
--- a/guide/yaml/yaml-reference.md
+++ b/guide/yaml/yaml-reference.md
@@ -213,6 +213,10 @@ concise DSL defined here:
`$brooklyn:root()`.
* `$brooklyn:formatString("pattern e.g. %s %s", "field 1", "field 2")` returns a future which creates the formatted string
with the given parameters, where parameters may be strings *or* other tasks such as `attributeWhenReady`
+* `$brooklyn:urlEncode("val")` returns a future which creates a string with the characters escaped
+ so it is a valid part of a URL. The parameter can be a string *or* another task. For example,
+ `$brooklyn:urlEncode($brooklyn:config(\"mykey\"))`. It uses "www-form-urlencoded" for the encoding,
+ which is appropriate for query parameters but not for some other parts of the URL (e.g. space is encoded as '+').
* `$brooklyn:literal("string")` returns the given string as a literal (suppressing any `$brooklyn:` expansion)
* `$brooklyn:object(Map)` creates an object, using keys `type` to define the java type,
and either `object.fields` or `brooklyn.config` to supply bean/constructor/flags to create an instance
[2/2] brooklyn-docs git commit: This closes #148
Posted by dr...@apache.org.
This closes #148
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/9ffd0491
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/9ffd0491
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/9ffd0491
Branch: refs/heads/master
Commit: 9ffd04919b368a0c28e4f5f86bd9fb484423cc85
Parents: 9ce71a4 31382c8
Author: Duncan Godwin <dr...@googlemail.com>
Authored: Mon Feb 27 09:39:31 2017 +0000
Committer: Duncan Godwin <dr...@googlemail.com>
Committed: Mon Feb 27 09:39:31 2017 +0000
----------------------------------------------------------------------
guide/yaml/yaml-reference.md | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------