synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNAPSE-1022) url-encode XPath function
Date Sun, 29 May 2016 02:37:12 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-1022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15305727#comment-15305727
] 

Hudson commented on SYNAPSE-1022:
---------------------------------

SUCCESS: Integrated in Synapse - Trunk #5248 (See [https://builds.apache.org/job/Synapse%20-%20Trunk/5248/])
Updated documentation for new XPath functions url-encode and base64Decode; Patch applied from
SYNAPSE-1022 (hiranya: rev 1745963)
* java/modules/documentation/src/site/xdoc/userguide/xpath.xml


> url-encode XPath function
> -------------------------
>
>                 Key: SYNAPSE-1022
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-1022
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Buddhima Wijeweera
>            Assignee: Hiranya Jayathilaka
>              Labels: features
>             Fix For: 3.0
>
>         Attachments: url-encode_func_with_tests.patch, url_encode_doc.diff
>
>
> This is to introduce new custom XPath function for url-encode functionality.
> In cases where user has to enter url-encoded values manually (specially when changing
URLs), this url-encode() function will come to rescue.
> This will helps to make configuration easier and more readable.
> Example:
> {noformat}
> <property name="foo" expression="url-encode("this/is+a/synapse test?for=url+encoding")
scope="default"/>
> {noformat}
> will output;
> {noformat}
> this/is%2Ba/synapse%20test?for=url+encoding
> {noformat}
> Please refer following documents for further information:
> [1] Documentation URIUtil.encodePathQuery - https://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/util/URIUtil.html#encodePathQuery(java.lang.String,
java.lang.String)
> [2] RFC 3986 - https://tools.ietf.org/html/rfc3986#section-3.3
> [3] Recommendations, query strings - https://www.w3.org/Addressing/URL/uri-spec.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message