|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceContext
Context object for ResourceGenerators.
Depending on the optimizations made by the implementation of the
ResourceContext, the resultant URL may or may not be compatible with standard
XMLHttpRequest security semantics. If the resource is intended to be used
with XHR, the xhrCompatible
paramater should be set to
true
when invoking addToOutput(URL, boolean)
.
Method Summary | |
---|---|
java.lang.String |
addToOutput(java.lang.String suggestedFileName,
java.lang.String mimeType,
byte[] data,
boolean xhrCompatible)
Cause a specific collection of bytes to be available in the program's compiled output. |
java.lang.String |
addToOutput(java.net.URL resource,
boolean xhrCompatible)
Cause a specific collection of bytes to be available in the program's compiled output. |
com.google.gwt.core.ext.GeneratorContext |
getGeneratorContext()
Return the GeneratorContext in which the overall resource generation framework is being run. |
com.google.gwt.core.ext.typeinfo.JClassType |
getResourceBundleType()
Return the type of the resource bundle being generated. |
com.google.gwt.user.rebind.SourceWriter |
getSourceWriter()
Return a SourceWriter which can be used to add to the concrete implementation of the type. |
Method Detail |
---|
java.lang.String addToOutput(java.net.URL resource, boolean xhrCompatible) throws com.google.gwt.core.ext.UnableToCompleteException
resource
- the resource to add to the compiled outputxhrCompatible
- enforces compatibility with security restrictions if
the resource is intended to be accessed via an XMLHttpRequest.
com.google.gwt.core.ext.UnableToCompleteException
java.lang.String addToOutput(java.lang.String suggestedFileName, java.lang.String mimeType, byte[] data, boolean xhrCompatible) throws com.google.gwt.core.ext.UnableToCompleteException
suggestedFileName
- an unobfuscated filename to possibly use for the
resourcemimeType
- the MIME type of the data being provideddata
- the bytes to add to the outputxhrCompatible
- enforces compatibility with security restrictions if
the resource is intended to be accessed via an XMLHttpRequest.
com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.GeneratorContext getGeneratorContext()
com.google.gwt.core.ext.typeinfo.JClassType getResourceBundleType()
com.google.gwt.user.rebind.SourceWriter getSourceWriter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |