public class ProxyingDiscoveryProvider extends java.lang.Object implements DiscoveryProvider
| Constructor and Description |
|---|
ProxyingDiscoveryProvider(com.google.common.collect.ImmutableList<ApiConfig> apiConfigs,
ApiConfigWriter configWriter) |
ProxyingDiscoveryProvider(com.google.common.collect.ImmutableList<ApiConfig> apiConfigs,
ApiConfigWriter configWriter,
com.google.api.services.discovery.Discovery discovery) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.services.discovery.model.DirectoryList |
getDirectory(java.lang.String root)
Gets a list of REST discovery documents hosted by the current server.
|
com.google.api.services.discovery.model.RestDescription |
getRestDocument(java.lang.String root,
java.lang.String name,
java.lang.String version)
Gets a REST discovery document for an API.
|
com.google.api.services.discovery.model.RpcDescription |
getRpcDocument(java.lang.String root,
java.lang.String name,
java.lang.String version)
Gets an RPC discovery document for an API.
|
public ProxyingDiscoveryProvider(com.google.common.collect.ImmutableList<ApiConfig> apiConfigs, ApiConfigWriter configWriter)
public ProxyingDiscoveryProvider(com.google.common.collect.ImmutableList<ApiConfig> apiConfigs, ApiConfigWriter configWriter, com.google.api.services.discovery.Discovery discovery)
public com.google.api.services.discovery.model.RestDescription getRestDocument(java.lang.String root,
java.lang.String name,
java.lang.String version)
throws NotFoundException,
InternalServerErrorException
DiscoveryProvidergetRestDocument in interface DiscoveryProviderNotFoundException - if the API doesn't existInternalServerErrorException - an error takes place when getting the documentpublic com.google.api.services.discovery.model.RpcDescription getRpcDocument(java.lang.String root,
java.lang.String name,
java.lang.String version)
throws NotFoundException,
InternalServerErrorException
DiscoveryProvidergetRpcDocument in interface DiscoveryProviderNotFoundException - if the API doesn't existInternalServerErrorException - an error takes place when getting the documentpublic com.google.api.services.discovery.model.DirectoryList getDirectory(java.lang.String root)
throws InternalServerErrorException
DiscoveryProvidergetDirectory in interface DiscoveryProviderInternalServerErrorException