|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.client.googleapis.json.DiscoveryDocument
public final class DiscoveryDocument
Manages a Google API discovery document based on the JSON format.
| Nested Class Summary | |
|---|---|
static class |
DiscoveryDocument.ServiceDefinition
Defines a specific version of an API. |
static class |
DiscoveryDocument.ServiceMethod
Defines a method of a service resource. |
static class |
DiscoveryDocument.ServiceParameter
Defines a parameter to a service method. |
static class |
DiscoveryDocument.ServiceResource
Defines a resource in a service definition. |
| Field Summary | |
|---|---|
DiscoveryDocument.ServiceDefinition |
serviceDefinition
API service definition parsed from discovery document. |
HttpTransport |
transport
Google transport required by buildRequest(java.lang.String, java.lang.Object). |
| Method Summary | |
|---|---|
HttpRequest |
buildRequest(String fullyQualifiedMethodName,
Object parameters)
Creates an HTTP request based on the given method name and parameters. |
static DiscoveryDocument |
execute(String api)
Deprecated. (scheduled to be removed in version 1.1) Use load(String) |
static DiscoveryDocument |
load(String apiName)
Executes a request for the JSON-formatted discovery document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final DiscoveryDocument.ServiceDefinition serviceDefinition
public HttpTransport transport
buildRequest(java.lang.String, java.lang.Object).
| Method Detail |
|---|
@Deprecated
public static DiscoveryDocument execute(String api)
throws IOException
load(String)
api - API name
IOException - I/O exception executing request
public static DiscoveryDocument load(String apiName)
throws IOException
apiName - API name
IOException - I/O exception executing request
public HttpRequest buildRequest(String fullyQualifiedMethodName,
Object parameters)
throws IOException
fullyQualifiedMethodName - name of method as defined in Discovery
document of format "resourceName.methodName"parameters - user defined key / value data mapping
IOException - I/O exception reading
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||