Interface ResourceContext


public interface ResourceContext
Context object for ResourceGenerators. An instance of this type will be provided by the resource generation framework to implementations of ResourceGenerator via ResourceGenerator.init(com.google.gwt.core.ext.TreeLogger, com.google.gwt.resources.ext.ResourceContext). Because this interface is not intended to be implemented by end-users, the API provided by this interface may be extended in the future.

Depending on the optimizations made by the implementation of deploy(java.lang.String, java.lang.String, byte[], boolean), the resulting URL may or may not be compatible with standard RequestBuilder / XMLHttpRequest security semantics. If the resource is intended to be used with XHR, or if there are other reasons why embedding the resource is undesirable such as known incompatibilities, the forceExternal parameter should be set to true when invoking deploy(java.lang.String, java.lang.String, byte[], boolean).