GWT 2.1.1

com.google.gwt.core.linker
Class CrossSiteIframeLinker

java.lang.Object
  extended by com.google.gwt.core.ext.Linker
      extended by com.google.gwt.core.ext.linker.AbstractLinker
          extended by com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
              extended by com.google.gwt.core.linker.CrossSiteIframeLinker

@LinkerOrder(value=PRIMARY)
@Shardable
public class CrossSiteIframeLinker
extends com.google.gwt.core.ext.linker.impl.SelectionScriptLinker

This linker uses an iframe to hold the code and a script tag to download the code. It can download code cross-site, because it uses a script tag to download it and because it never uses XHR. The iframe, meanwhile, makes it trivial to install additional code as the app runs.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.PermutationId
 
Field Summary
 
Fields inherited from class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
COMPUTE_SCRIPT_BASE_JS, FRAGMENT_EXTENSION, FRAGMENT_SUBDIR, PERMUTATIONS_JS, PROCESS_METAS_JS
 
Constructor Summary
CrossSiteIframeLinker()
           
 
Method Summary
protected  byte[] generatePrimaryFragment(TreeLogger logger, LinkerContext context, CompilationResult result, java.lang.String[] js)
           
protected  java.lang.String generateSelectionScript(TreeLogger logger, LinkerContext context, ArtifactSet artifacts)
           
protected  java.lang.String getCompilationExtension(TreeLogger logger, LinkerContext context)
           
 java.lang.String getDescription()
          Returns a human-readable String describing the Linker.
protected  java.lang.String getHostedFilename()
           
protected  java.lang.String getModulePrefix(TreeLogger logger, LinkerContext context, java.lang.String strongName)
           
protected  java.lang.String getModulePrefix(TreeLogger logger, LinkerContext context, java.lang.String strongName, int numFragments)
           
protected  java.lang.String getModuleSuffix(TreeLogger logger, LinkerContext context)
           
protected  java.lang.String getSelectionScriptTemplate(TreeLogger logger, LinkerContext context)
           
 
Methods inherited from class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
doEmitCompilation, emitSelectionScript, generateDeferredFragment, generatePropertyProvider, generateScriptInjector, generateStylesheetInjector, getSelectionScriptStringBuffer, isRelativeURL, link, link, maybeAddHostedModeFile, processSelectionInformation, processSelectionScriptCommon, replaceAll, supportsDevMode
 
Methods inherited from class com.google.gwt.core.ext.linker.AbstractLinker
emitBytes, emitBytes, emitInputStream, emitInputStream, emitString, emitString, emitWithStrongName, emitWithStrongName
 
Methods inherited from class com.google.gwt.core.ext.Linker
isShardable, relink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossSiteIframeLinker

public CrossSiteIframeLinker()
Method Detail

getDescription

public java.lang.String getDescription()
Description copied from class: Linker
Returns a human-readable String describing the Linker.

Specified by:
getDescription in class Linker

generatePrimaryFragment

protected byte[] generatePrimaryFragment(TreeLogger logger,
                                         LinkerContext context,
                                         CompilationResult result,
                                         java.lang.String[] js)
Overrides:
generatePrimaryFragment in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker

generateSelectionScript

protected java.lang.String generateSelectionScript(TreeLogger logger,
                                                   LinkerContext context,
                                                   ArtifactSet artifacts)
                                            throws UnableToCompleteException
Overrides:
generateSelectionScript in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
Throws:
UnableToCompleteException

getCompilationExtension

protected java.lang.String getCompilationExtension(TreeLogger logger,
                                                   LinkerContext context)
Specified by:
getCompilationExtension in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker

getHostedFilename

protected java.lang.String getHostedFilename()
Overrides:
getHostedFilename in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker

getModulePrefix

protected java.lang.String getModulePrefix(TreeLogger logger,
                                           LinkerContext context,
                                           java.lang.String strongName)
Specified by:
getModulePrefix in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker

getModulePrefix

protected java.lang.String getModulePrefix(TreeLogger logger,
                                           LinkerContext context,
                                           java.lang.String strongName,
                                           int numFragments)
Overrides:
getModulePrefix in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker

getModuleSuffix

protected java.lang.String getModuleSuffix(TreeLogger logger,
                                           LinkerContext context)
Specified by:
getModuleSuffix in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker

getSelectionScriptTemplate

protected java.lang.String getSelectionScriptTemplate(TreeLogger logger,
                                                      LinkerContext context)
Specified by:
getSelectionScriptTemplate in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker

GWT 2.1.1