org.apache.shindig.gadgets.render
Interface RpcServiceLookup

All Known Implementing Classes:
DefaultRpcServiceLookup

public interface RpcServiceLookup

Provide information about the set of JSON-RPC services that are available to gadgets running in the context of a specific container


Method Summary
 com.google.common.collect.Multimap<String,String> getServicesFor(String container, String host)
          This result map is a map of the form { endpoint1 -> [services]}, endpoint2 -> [services]} Services are described using the names expected as a result of JSON-RPC call to system.listMethods When a gadget is rendered the container data is mapped into gadgets.config and used to initialize osapi, which typically results in output that looks like { "osapi.services" : { "http://.../endpoint1" : ["system.listMethods", "people.get", "people.create", "people.delete"], ...
 

Method Detail

getServicesFor

com.google.common.collect.Multimap<String,String> getServicesFor(String container,
                                                                 String host)
This result map is a map of the form { endpoint1 -> [services]}, endpoint2 -> [services]} Services are described using the names expected as a result of JSON-RPC call to system.listMethods When a gadget is rendered the container data is mapped into gadgets.config and used to initialize osapi, which typically results in output that looks like { "osapi.services" : { "http://.../endpoint1" : ["system.listMethods", "people.get", "people.create", "people.delete"], ... }, "http://.../endpoint2" : { "system.listMethods", "cache.invalidate"], ... } }}

Parameters:
container -
host -
Returns:


Copyright © 2007-2012. All Rights Reserved.