Composite Application Builder  Defining events

Chapter 4: Advanced Application Creation

Application post-processing options

The key to building virtual applications is the addition of postprocessing functions or filters to the application’s applications. Post-processing functions can either transform an application’s content (for example, render the content as a chart), or create events For example, you can transform an application’s content into a chart or you can create events that are triggered when a user accesses an application’s content. You can add more than one post-processing function to handle an application’s content and configure the order in which the postprocessing occurs. When you use multiple postprocessing functions, each function operates on the output of the previous function—similar to a Pipes and Filter design.

NotePipes and Filters is a design architecture where the components are known as filters and the connectors are the pipes. Filters read input data, perform some computation or transformation on the data, and produce output data. Pipes serve as conduits for the data streams, passing outputs from one filter to the inputs of another filter.

The post-processing options are available by right-clicking an application in the Application Builder left pane:

All available post-processing modules are configured in the uwp.xml configuration file, which is located in %JAGUAR%\Repository\WebApplication\onepage\fw\properties if you are using EAServer, and %SYBASE%\UnwiredAccelerator70\tomcat\webapps\onepage\fw\properties if you are using Tomcat.

To add additional post-processing modules, use this interface:

</ApplicationWizards>
<PortletContentPostProcesserFilters>
  <FilterDef name="jspfilter"    class="com.onepage.fw.uwp.apps.jspfilter.UWPJSPFilterApp"    multiple_occurance_allowed="true" use_app_object="true" desc="This is used    to allow JSP code to operate on portlet content" /> 
  <FilterDef name="charts" class="com.onepage.fw.uwp.apps.charts.UWPChartsApp"    multiple_occurance_allowed="true" use_app_object="true" desc="This is used    to allow JSP code to operate on portlet content" /> 
  <FilterDef name="formparser"    class="com.onepage.fw.uwp.apps.formparser.UWPFormParserApp"    multiple_occurance_allowed="true" use_app_object="true" desc="This is used    to allow JSP code to operate on portlet content" /> 
  <FilterDef name="clickacross"    class="com.onepage.fw.uwp.apps.clickacross.UWPClickAcrossApp"    multiple_occurance_allowed="true" use_app_object="true" desc="This is used    to allow JSP code to operate on portlet content" /> 
  <FilterDef name="clickacross-text"    class="com.onepage.fw.uwp.apps.textprocessor.UWPTextProcessorApp"    multiple_occurance_allowed="true" use_app_object="true" desc="This is used    to allow JSP code to operate on portlet content" /> 
  <FilterDef name="listener"    class="com.onepage.fw.uwp.apps.clickacross.UWPClickAcrossApp"    multiple_occurance_allowed="true" use_app_object="true" desc="This is used    to allow JSP code to operate on portlet content" /> </PortletContentPostProcesserFilters>
</Framework>

There is a method in the UWPManager getPostProcessingFilters that returns a list of configured filters.





Copyright © 2005. Sybase Inc. All rights reserved. Defining events

View this book as PDF