public class LocalDiscoveryProvider
extends java.lang.Object
DiscoveryProvider which generates discovery documents locally.| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger |
| Constructor and Description |
|---|
LocalDiscoveryProvider(com.google.common.collect.ImmutableList<ApiConfig> apiConfigs,
DiscoveryGenerator generator,
SchemaRepository repository) |
| 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 LocalDiscoveryProvider(com.google.common.collect.ImmutableList<ApiConfig> apiConfigs, DiscoveryGenerator generator, SchemaRepository repository)
public com.google.api.services.discovery.model.RestDescription getRestDocument(java.lang.String root,
java.lang.String name,
java.lang.String version)
throws NotFoundException
DiscoveryProviderNotFoundException - if the API doesn't existpublic com.google.api.services.discovery.model.RpcDescription getRpcDocument(java.lang.String root,
java.lang.String name,
java.lang.String version)
throws NotFoundException
DiscoveryProviderNotFoundException - if the API doesn't existpublic com.google.api.services.discovery.model.DirectoryList getDirectory(java.lang.String root)
DiscoveryProvider