ERXResponseRewriter.Delegate Interface Reference

List of all members.

Public Member Functions

boolean responseRewriterShouldAddResource (String framework, String fileName)
ERXResponseRewriter.Resource responseRewriterWillAddResource (String framework, String fileName)


Detailed Description

The delegate that is called prior to adding resources into the page, which gives you a chance to deny the addition, or rewrite the addition to a custom resource.

Author:
mschrag

Member Function Documentation

boolean responseRewriterShouldAddResource ( String  framework,
String  fileName 
)

Called prior to adding resources at all. Returning false will skip the addition completely.

Parameters:
framework the requested framework of the addition (can be null)
fileName the requested fileName of the addition (can be a URL, absolute path, or relative resource path)
Returns:
true if the resource should be added

ERXResponseRewriter.Resource responseRewriterWillAddResource ( String  framework,
String  fileName 
)

Provides the ability to override the requested framework and fileName with a custom alternative. For example, if you want to replace all "Ajax" "prototype.js" imports, you can provide your own alternative "app" "prototype.js".

Parameters:
framework the requested framework of the addition (can be null)
fileName the requested fileName of the addition (can be a URL, absolute path, or relative resource path)
Returns:
an alternative Resource, or null to use the requested resource


The documentation for this interface was generated from the following file:

Generated on Sat May 26 06:43:02 2012 for Project Wonder by  doxygen 1.5.8