@Shardable
@LinkerOrder(value=POST)
public class DefaultCacheManifestLinker
extends com.google.gwt.core.ext.linker.AbstractLinker
To use:
<define-linker name="offline" class="org.jboss.errai.offline.linker.DefaultCacheManifestLinker" />
<add-linker name="offline" />
manifest="YOURMODULENAME/errai.appcache"
to the
<html>
tag in your host page e.g.,
<html manifest="mymodule/errai.appcache">
<mime-mapping>
<extension>manifest</extension>
<mime-type>text/cache-manifest</mime-type>
</mime-mapping>
To obtain manifests that contain other files in addition to those generated
by this linker, create a class that inherits from this one and overrides
otherCachedFiles()
, and use it as a linker instead:
@Shardable
@LinkerOrder(Order.POST)
public class MyCacheManifestLinker extends DefaultCacheManifestLinker {@Override
protected String[] otherCachedFiles() { return new String[] {"/my-app/index.html","/my-app/css/application.css"}; } }
Constructor and Description |
---|
DefaultCacheManifestLinker() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
com.google.gwt.core.ext.linker.ArtifactSet |
link(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.LinkerContext context,
com.google.gwt.core.ext.linker.ArtifactSet artifacts,
boolean onePermutation) |
protected String[] |
otherCachedFiles()
Override this method to include additional files in the manifest.
|
emitBytes, emitBytes, emitInputStream, emitInputStream, emitString, emitString, emitWithStrongName, emitWithStrongName
public String getDescription()
getDescription
in class com.google.gwt.core.ext.Linker
public com.google.gwt.core.ext.linker.ArtifactSet link(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts, boolean onePermutation) throws com.google.gwt.core.ext.UnableToCompleteException
link
in class com.google.gwt.core.ext.Linker
com.google.gwt.core.ext.UnableToCompleteException
protected String[] otherCachedFiles()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.