org.apache.shindig.gadgets.config
Class XhrwrapperConfigContributor

java.lang.Object
  extended by org.apache.shindig.gadgets.config.XhrwrapperConfigContributor
All Implemented Interfaces:
ConfigContributor

public class XhrwrapperConfigContributor
extends Object
implements ConfigContributor

Provides config support for the xhrwrapper feature.

Since:
2.0.0

Constructor Summary
XhrwrapperConfigContributor()
           
 
Method Summary
 void contribute(Map<String,Object> config, Gadget gadget)
          Contribute configuration values for a specific gadget in an iframe.
 void contribute(Map<String,Object> config, String container, String host)
          Contribute configuration for the container specific javascript.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XhrwrapperConfigContributor

public XhrwrapperConfigContributor()
Method Detail

contribute

public void contribute(Map<String,Object> config,
                       Gadget gadget)
Contribute configuration values for a specific gadget in an iframe.

Specified by:
contribute in interface ConfigContributor
Parameters:
config - The config mapping of feature to value.
gadget - The gadget to contribute for.

contribute

public void contribute(Map<String,Object> config,
                       String container,
                       String host)
Description copied from interface: ConfigContributor
Contribute configuration for the container specific javascript. This interface should only support params used by JsServlet

Specified by:
contribute in interface ConfigContributor
Parameters:
config - The config to add to.
container - The container.
host - The hostname


Copyright © 2007-2012. All Rights Reserved.