org.apache.shindig.gadgets.render
Class DefaultServiceFetcher

java.lang.Object
  extended by org.apache.shindig.gadgets.render.DefaultServiceFetcher

public class DefaultServiceFetcher
extends Object

Retrieves the rpc services for a container by fetching them from the container's system.listMethods endpoints as defined in the container config.


Constructor Summary
DefaultServiceFetcher(ContainerConfig config, HttpFetcher fetcher)
           
 
Method Summary
 com.google.common.collect.Multimap<String,String> getServicesForContainer(String container, String host)
          Returns the services, keyed by endpoint for the given container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServiceFetcher

@Inject
public DefaultServiceFetcher(ContainerConfig config,
                                    HttpFetcher fetcher)
Parameters:
config - Container Config for looking up endpoints
Method Detail

getServicesForContainer

public com.google.common.collect.Multimap<String,String> getServicesForContainer(String container,
                                                                                 String host)
Returns the services, keyed by endpoint for the given container.

Parameters:
container - The particular container whose services we want.
Returns:
Map endpoints and their serviceMethod list


Copyright © 2007-2012. All Rights Reserved.