public class MhtmlResourceContext extends AbstractResourceContext
MAX_INLINE_SIZE
Modifier and Type | Method and Description |
---|---|
String |
deploy(String suggestedFileName,
String mimeType,
byte[] data,
boolean forceExternal)
Cause a specific collection of bytes to be available in the program's
compiled output.
|
void |
finish() |
boolean |
supportsDataUrls()
Indicates if the runtime context supports data: urls.
|
deploy, deploy, getCachedData, getClientBundleType, getContext, getGeneratorContext, getImplementationSimpleSourceName, getLogger, getRequirements, putCachedData, setRequirements, toBase64
public String deploy(String suggestedFileName, String mimeType, byte[] data, boolean forceExternal) throws com.google.gwt.core.ext.UnableToCompleteException
ResourceContext
deploy
in interface ResourceContext
suggestedFileName
- an unobfuscated filename to possibly use for the
resourcemimeType
- the MIME type of the data being provideddata
- the bytes to add to the outputforceExternal
- prevents embedding of the resource, e.g. in case of
known incompatibilities or for example to enforce compatibility
with security restrictions if the resource is intended to be
accessed via an XMLHttpRequestcom.google.gwt.core.ext.UnableToCompleteException
public void finish() throws com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.UnableToCompleteException
public boolean supportsDataUrls()
ResourceContext
Copyright © 2016. All rights reserved.