GitHub user devin-fisher opened a pull request:

    https://github.com/apache/nifi/pull/833

    Add String Escape Utils to Nifi Expression Language (redo)

    jira:[NIFI-2460](https://issues.apache.org/jira/browse/NIFI-2460)
    
    Added functions to escape and unescape common transport formats that are 
supported by common-lang's 
[StringEscapeUtils](https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringEscapeUtils.html).
    
    Since I added ten functions, I created a new section in the Documentation. 
I also moved URL encode and decode there too.
    
    Don't add a lot of unit tests since I'm directly piping it through to 
[StringEscapeUtils](https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringEscapeUtils.html)
 and they have extensive testing 
[there](https://github.com/apache/commons-lang/blob/master/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java).
  The test are most to verify that it is going to the right function.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/devin-fisher/nifi add_escape_utils

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/833.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #833
    
----
commit e5c9bc957d7eff6a70728c778bd3e065e78b7cdd
Author: Devin Fisher <[email protected]>
Date:   2016-07-02T23:53:16Z

    EscapeJson function added to expression-language
    
    Made use of org.apache.commons.lang3.StringEscapeUtils to do that
    actual processing

commit 46f91a23e680be9bded1687070d5b1195c73e88e
Author: Devin Fisher <[email protected]>
Date:   2016-07-03T12:45:09Z

    fix a copy past error

commit 3074072d7920bf762e410400f9fe27aa94e9d2d9
Author: devin fisher <[email protected]>
Date:   2016-07-28T03:17:39Z

    added functions for escaping text to the expression language

commit 5362b5b2b016b333d948326fbb2244e7fab7297a
Author: devin fisher <[email protected]>
Date:   2016-07-28T04:18:50Z

    Added more test for escape and unescape functions

commit 663960f67619d92d2dd6c18157de4975e6736ced
Author: Devin Fisher <[email protected]>
Date:   2016-07-28T23:23:41Z

    Added documentation for the new expression language functions for escapes

commit 48823a00ae8af3cf80727246132d669fd85ec3bc
Author: Devin Fisher <[email protected]>
Date:   2016-08-10T21:41:04Z

    Changed the heading for doc to encode instead of escape

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to