public abstract class BaseProviderMetadata extends Object implements ProviderMetadata
ProviderMetadata
to be extended by
those implementing ProviderMetadata.
(Note: This class must be abstract to allow ServiceLoader
to work properly.Modifier and Type | Class and Description |
---|---|
static class |
BaseProviderMetadata.Builder |
Modifier and Type | Field and Description |
---|---|
protected ApiMetadata |
api |
protected com.google.common.base.Optional<URI> |
console |
protected Properties |
defaultProperties |
protected String |
endpoint |
protected com.google.common.base.Optional<URI> |
homepage |
protected String |
id |
protected Set<String> |
iso3166Codes |
protected Set<String> |
linkedServices |
protected String |
name |
Constructor and Description |
---|
BaseProviderMetadata(BaseProviderMetadata.Builder builder) |
BaseProviderMetadata(String id,
String name,
ApiMetadata api,
String endpoint,
Properties defaultProperties,
com.google.common.base.Optional<URI> homepage,
com.google.common.base.Optional<URI> console,
Set<String> linkedServices,
Set<String> iso3166Codes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ApiMetadata |
getApiMetadata() |
com.google.common.base.Optional<URI> |
getConsole() |
Properties |
getDefaultProperties()
Configuration Properties used when creating connections to this provider.
|
String |
getEndpoint() |
com.google.common.base.Optional<URI> |
getHomepage() |
String |
getId() |
Set<String> |
getIso3166Codes()
iso 3166 codes; ex.
|
Set<String> |
getLinkedServices() |
String |
getName() |
int |
hashCode() |
com.google.common.base.Objects.ToStringHelper |
string() |
ProviderMetadata.Builder |
toBuilder() |
String |
toString() |
protected final String id
protected final String name
protected final ApiMetadata api
protected final String endpoint
protected final Properties defaultProperties
protected final com.google.common.base.Optional<URI> homepage
protected final com.google.common.base.Optional<URI> console
public BaseProviderMetadata(BaseProviderMetadata.Builder builder)
public ProviderMetadata.Builder toBuilder()
toBuilder
in interface ProviderMetadata
ProviderMetadata.Builder
public com.google.common.base.Objects.ToStringHelper string()
public String getId()
getId
in interface ProviderMetadata
public String getName()
getName
in interface ProviderMetadata
public ApiMetadata getApiMetadata()
getApiMetadata
in interface ProviderMetadata
public String getEndpoint()
getEndpoint
in interface ProviderMetadata
ApiMetadata#getEndpoint
public com.google.common.base.Optional<URI> getConsole()
getConsole
in interface ProviderMetadata
public Properties getDefaultProperties()
getDefaultProperties
in interface ProviderMetadata
ApiMetadata.getDefaultProperties()
public com.google.common.base.Optional<URI> getHomepage()
getHomepage
in interface ProviderMetadata
public Set<String> getLinkedServices()
getLinkedServices
in interface ProviderMetadata
providers
which have the
same account as this.public Set<String> getIso3166Codes()
getIso3166Codes
in interface ProviderMetadata
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.