|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.apis.internal.BaseApiMetadata
public abstract class BaseApiMetadata
The BaseApiMetadata class is an abstraction of ApiMetadata to be extended by those
implementing ApiMetadata.
(Note: This class must be abstract to allow ServiceLoader to work properly.
| Nested Class Summary | |
|---|---|
static class |
BaseApiMetadata.Builder
|
| Field Summary | |
|---|---|
protected com.google.common.base.Optional<String> |
buildVersion
|
protected com.google.common.reflect.TypeToken<? extends Context> |
context
|
protected com.google.common.base.Optional<String> |
credentialName
|
protected com.google.common.base.Optional<String> |
defaultCredential
|
protected com.google.common.base.Optional<String> |
defaultEndpoint
|
protected com.google.common.base.Optional<String> |
defaultIdentity
|
protected Set<Class<? extends com.google.inject.Module>> |
defaultModules
|
protected Properties |
defaultProperties
|
protected URI |
documentation
|
protected String |
endpointName
|
protected String |
id
|
protected String |
identityName
|
protected String |
name
|
protected String |
version
|
protected Set<com.google.common.reflect.TypeToken<? extends View>> |
views
|
| Constructor Summary | |
|---|---|
protected |
BaseApiMetadata(BaseApiMetadata.Builder builder)
|
|
BaseApiMetadata(String id,
String name,
Set<com.google.common.reflect.TypeToken<? extends View>> views,
String endpointName,
String identityName,
com.google.common.base.Optional<String> credentialName,
String version,
com.google.common.base.Optional<String> buildVersion,
com.google.common.base.Optional<String> defaultEndpoint,
com.google.common.base.Optional<String> defaultIdentity,
com.google.common.base.Optional<String> defaultCredential,
Properties defaultProperties,
URI documentation,
com.google.common.reflect.TypeToken<? extends Context> context,
Set<Class<? extends com.google.inject.Module>> defaultModules)
|
| Method Summary | |
|---|---|
static Properties |
defaultProperties()
|
boolean |
equals(Object o)
|
com.google.common.base.Optional<String> |
getBuildVersion()
Explicitly identifies the build that the server jclouds connects to is running. |
com.google.common.reflect.TypeToken<? extends Context> |
getContext()
|
com.google.common.base.Optional<String> |
getCredentialName()
Note: if the api doesn't need a credential, this will return absent. |
com.google.common.base.Optional<String> |
getDefaultCredential()
Explicitly sets the secret, which when combined with the identity, will create an authenticated subject or session |
com.google.common.base.Optional<String> |
getDefaultEndpoint()
Explicitly identifies the most top-level endpoint to a service provider. |
com.google.common.base.Optional<String> |
getDefaultIdentity()
Explicitly identifies the login identity into a provider |
Set<Class<? extends com.google.inject.Module>> |
getDefaultModules()
Modules that configure dependency injection for this context |
Properties |
getDefaultProperties()
Configuration Properties used when creating connections to this api |
URI |
getDocumentation()
|
String |
getEndpointName()
The endpointName helps the user supply the correct data when
prompted. |
String |
getId()
|
String |
getIdentityName()
|
String |
getName()
|
String |
getVersion()
Explicitly identifies the version of an api. |
Set<com.google.common.reflect.TypeToken<? extends View>> |
getViews()
|
int |
hashCode()
|
protected com.google.common.base.Objects.ToStringHelper |
string()
|
BaseApiMetadata.Builder |
toBuilder()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final String id
protected final String name
protected final Set<com.google.common.reflect.TypeToken<? extends View>> views
protected final String endpointName
protected final String identityName
protected final com.google.common.base.Optional<String> credentialName
protected final String version
protected final com.google.common.base.Optional<String> buildVersion
protected final com.google.common.base.Optional<String> defaultEndpoint
protected final com.google.common.base.Optional<String> defaultIdentity
protected final com.google.common.base.Optional<String> defaultCredential
protected final Properties defaultProperties
protected final URI documentation
protected final com.google.common.reflect.TypeToken<? extends Context> context
protected final Set<Class<? extends com.google.inject.Module>> defaultModules
| Constructor Detail |
|---|
protected BaseApiMetadata(BaseApiMetadata.Builder builder)
public BaseApiMetadata(String id,
String name,
Set<com.google.common.reflect.TypeToken<? extends View>> views,
String endpointName,
String identityName,
com.google.common.base.Optional<String> credentialName,
String version,
com.google.common.base.Optional<String> buildVersion,
com.google.common.base.Optional<String> defaultEndpoint,
com.google.common.base.Optional<String> defaultIdentity,
com.google.common.base.Optional<String> defaultCredential,
Properties defaultProperties,
URI documentation,
com.google.common.reflect.TypeToken<? extends Context> context,
Set<Class<? extends com.google.inject.Module>> defaultModules)
| Method Detail |
|---|
public static Properties defaultProperties()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectprotected com.google.common.base.Objects.ToStringHelper string()
public String getId()
getId in interface ApiMetadatapublic String getName()
getName in interface ApiMetadatapublic Set<com.google.common.reflect.TypeToken<? extends View>> getViews()
getViews in interface ApiMetadataBlobStoreContextpublic String getEndpointName()
endpointName helps the user supply the correct data when
prompted.
For example, on OpenStack APIs, this could be: Keystone url Path of byon.yaml
Default: "https endpoint"
getEndpointName in interface ApiMetadatapublic String getIdentityName()
getIdentityName in interface ApiMetadatapublic com.google.common.base.Optional<String> getCredentialName()
getCredentialName in interface ApiMetadatapublic String getVersion()
getVersion in interface ApiMetadatapublic com.google.common.base.Optional<String> getBuildVersion()
4.1.8 while
the build version is 4.1.8r75467. Or a vcloud endpoint may be api
version 1.0 while the build is 1.5.0.0.124312
getBuildVersion in interface ApiMetadatapublic com.google.common.base.Optional<String> getDefaultEndpoint()
String as we permit endpoints that require
variable expansion.
ex.
https://${jclouds.identity}.blob.core.windows.net
getDefaultEndpoint in interface ApiMetadatapublic com.google.common.base.Optional<String> getDefaultIdentity()
getDefaultIdentity in interface ApiMetadatapublic com.google.common.base.Optional<String> getDefaultCredential()
getDefaultCredential in interface ApiMetadataApiMetadata.getDefaultIdentity(),
ApiMetadata.getCredentialName()public Properties getDefaultProperties()
getDefaultProperties in interface ApiMetadatapublic URI getDocumentation()
getDocumentation in interface ApiMetadatapublic com.google.common.reflect.TypeToken<? extends Context> getContext()
getContext in interface ApiMetadataRestContext<EC2Client, EC2AsyncClient>public Set<Class<? extends com.google.inject.Module>> getDefaultModules()
getDefaultModules in interface ApiMetadatapublic BaseApiMetadata.Builder toBuilder()
toBuilder in interface ApiMetadataApiMetadata.Builder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||