Interface PluginResourceOverride


  • public interface PluginResourceOverride
    Used to replace a plugin resource. An implementation of this interface may conditionally replace the content of another plugin's static resource with it's own content.
    Author:
    Daniel Meyer
    • Method Detail

      • filterResource

        java.io.InputStream filterResource​(java.io.InputStream inputStream,
                                           RequestInfo requestInfo)
        Invoked after a static plugin resource has been resolved. If the implementation decides not to modify the resource, it must return the original input stream passed in as parameter.
        Parameters:
        inputStream - the content of the resource
        requestInfo - contains information about the request.
        Returns:
        the original input stream or a modified input stream or null to remove the resource.