Index Changes

Difference between version and version     

Back to Fuji EIPCBR, or Fuji EIPCBR Info


At line 97 changed 1 line.
!! Dynamic updates
! Additional functionality
One feature that is more useful in this context is the group support in Regex. If a Regex group is detected, the filter selects the [Group(1) | http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html] value as its result. This allows extracting a value to be used as a when expression test.
Sample IFL:
{{{
select header ("nm.attachment=MyAttachment,exp=(\w/\w);.*")
when "text/xml" to "xml-reader"
when "application/octet-stream" to "binary-reader"
else "unsupported-attachment-type"
If the attachment content type is "text/xml;ISO-8859-1", "text/xml" is returned.
}}}
! Dynamic update examples
At line 269 removed 11 lines.
One feature that is more useful in this context is the group support in Regex. If a Regex group is detected, the filter selects the [Group(1) | http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html] value as its result. This allows extracting a value to be used as a when expression test.
! Example
{{{
select header ("nm.attachment=MyAttachment,exp=(\w/\w);.*")
when "text/xml" to "xml-reader"
when "application/octet-stream" to "binary-reader"
else "unsupported-attachment-type"
If the attachment content type is "text/xml;ISO-8859-1", "text/xml" is returned.
}}}

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-31) was last changed on 03-Nov-09 23:12 PM, -0800 by MarkWhite