public class ProxyingDiscoveryProvider
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger |
| 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
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
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
DiscoveryProviderInternalServerErrorException