Tuning Performance of the Announcements Service

26-16 Oracle Fusion Middleware Performance and Tuning Guide served resource response, but can be overridden by the presence of the oracle.portlet.server.resourceRequiresRewriting request attribute when the portlets serveResource method returns. Valid values: ■ unspecified - Default The requiresRewrite URL flag is not given a value, and the requiresRewriting response flag for a serveResource operation is based on the MIME type of the response. ■ true - The requiresRewrite URL flag and requiresRewriting response flag is set to true, indicating that the resource should be rewritten by the consumer. ■ false - The requiresRewrite URL flag and requiresRewriting response flag is set to false, indicating that the resource does not necessarily need to be rewritten by the consumer, though the consumer may choose to rewrite the resource.

26.5.7 Setting DefaultProxiedResourceRequiresWsrpRewrite for WSRP Portlets

To specify the default WSRP requiresRewrite flag to use when encoding URLs for resources not served by the portlet, set the Portlet container runtime option specified in portlet.xml as follows: com.oracle.portlet.defaultProxiedResourceRequiresWsrpRewrite. This setting is used for all URLs returned by the PortletResponse.encodeURL method, unless overridden by the presence of the oracle.portlet.server.resourceRequiresRewriting request attribute when the PortletResponse.encodeURL method is called. Valid values: ■ true - Default The requiresRewrite URL flag is set to true, indicating that the resource should be rewritten by the consumer. ■ false - The requiresRewrite URL flag is set to false, indicating that the resource does not necessarily need to be rewritten by the consumer.

26.5.8 Importing Consumer CSS Files in IFrame Portlets

To specify to a portal consumer that the CSS file is imported to an IFramed portlet, set the Portlet container runtime option specified in portlet.xml as follows: com.oracle.portlet.importCssToIFrame. Valid values: ■ true - The CSS file from the consumer is applied to an IFramed portlet. ■ false - Default Nothing is done.

26.5.9 Configuring Portlet Timeout

You can modify the portlet timeout value in the adf-portlet-config element of the adf-config.xml file. Default: 10 seconds, minimum: 0.1 seconds, maximum: 60 seconds. If you must modify these properties, post deployment, you must edit adf-config.xml manually. See Editing adf-config.xml in the Oracle Fusion Middleware Administrators Guide for Oracle WebCenter. The following is a sample snippet of adf-config.xml: