org.apache.shindig.gadgets.render
Class DefaultServiceFetcher
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultServiceFetcher
@Inject
public DefaultServiceFetcher(ContainerConfig config,
HttpFetcher fetcher)
- Parameters:
config - Container Config for looking up endpoints
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.