public class ConnectionConfigImpl extends Object implements ConnectionConfig
ConnectionConfig.| Modifier and Type | Class and Description |
|---|---|
static interface |
ConnectionConfigImpl.Converter<T>
Callback to parse a property from string to its native type.
|
static class |
ConnectionConfigImpl.PropEnv
The combination of a property definition and a map of property values.
|
| Modifier and Type | Field and Description |
|---|---|
static ConnectionConfigImpl.Converter<Boolean> |
BOOLEAN_CONVERTER |
static ConnectionConfigImpl.Converter<String> |
IDENTITY_CONVERTER |
(package private) static Map<String,BigDecimal> |
MULTIPLIER_MAP |
static ConnectionConfigImpl.Converter<Number> |
NUMBER_CONVERTER |
protected Properties |
properties |
| Constructor and Description |
|---|
ConnectionConfigImpl(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
String |
authentication() |
String |
avaticaPassword() |
String |
avaticaUser() |
static <E extends Enum> |
enumConverter(Class<E> enumClass) |
Service.Factory |
factory() |
HostnameVerificationConfigurable.HostnameVerification |
hostnameVerification() |
String |
httpClientClass() |
AvaticaHttpClientFactory |
httpClientFactory() |
File |
kerberosKeytab() |
String |
kerberosPrincipal() |
static Map<ConnectionProperty,String> |
parse(Properties properties,
Map<String,? extends ConnectionProperty> nameToProps)
Converts a
Properties object containing (name, value)
pairs into a map whose keys are
InternalProperty objects. |
static <T> ConnectionConfigImpl.Converter<T> |
pluginConverter(Class<T> pluginClass,
T defaultInstance) |
String |
schema() |
String |
serialization() |
String |
timeZone() |
File |
truststore() |
String |
truststorePassword() |
String |
url() |
protected final Properties properties
public static final ConnectionConfigImpl.Converter<Boolean> BOOLEAN_CONVERTER
static final Map<String,BigDecimal> MULTIPLIER_MAP
public static final ConnectionConfigImpl.Converter<Number> NUMBER_CONVERTER
public static final ConnectionConfigImpl.Converter<String> IDENTITY_CONVERTER
public ConnectionConfigImpl(Properties properties)
public String schema()
schema in interface ConnectionConfigBuiltInConnectionProperty.SCHEMApublic String timeZone()
timeZone in interface ConnectionConfigBuiltInConnectionProperty.TIME_ZONEpublic Service.Factory factory()
factory in interface ConnectionConfigBuiltInConnectionProperty.FACTORYpublic String url()
url in interface ConnectionConfigBuiltInConnectionProperty.URLpublic String serialization()
serialization in interface ConnectionConfigBuiltInConnectionProperty.SERIALIZATIONpublic String authentication()
authentication in interface ConnectionConfigBuiltInConnectionProperty.AUTHENTICATIONpublic String avaticaUser()
avaticaUser in interface ConnectionConfigBuiltInConnectionProperty.AVATICA_USERpublic String avaticaPassword()
avaticaPassword in interface ConnectionConfigBuiltInConnectionProperty.AVATICA_PASSWORDpublic AvaticaHttpClientFactory httpClientFactory()
httpClientFactory in interface ConnectionConfigBuiltInConnectionProperty.HTTP_CLIENT_FACTORYpublic String httpClientClass()
httpClientClass in interface ConnectionConfigBuiltInConnectionProperty.HTTP_CLIENT_IMPLpublic String kerberosPrincipal()
kerberosPrincipal in interface ConnectionConfigBuiltInConnectionProperty.PRINCIPALpublic File kerberosKeytab()
kerberosKeytab in interface ConnectionConfigBuiltInConnectionProperty.KEYTABpublic File truststore()
truststore in interface ConnectionConfigBuiltInConnectionProperty.TRUSTSTOREpublic String truststorePassword()
truststorePassword in interface ConnectionConfigBuiltInConnectionProperty.TRUSTSTORE_PASSWORDpublic HostnameVerificationConfigurable.HostnameVerification hostnameVerification()
hostnameVerification in interface ConnectionConfigBuiltInConnectionProperty.HOSTNAME_VERIFICATIONpublic static Map<ConnectionProperty,String> parse(Properties properties, Map<String,? extends ConnectionProperty> nameToProps)
Properties object containing (name, value)
pairs into a map whose keys are
InternalProperty objects.
Matching is case-insensitive. Throws if a property is not known. If a property occurs more than once, takes the last occurrence.
properties - PropertiesRuntimeException - if a property is not knownpublic static <E extends Enum> ConnectionConfigImpl.Converter<E> enumConverter(Class<E> enumClass)
public static <T> ConnectionConfigImpl.Converter<T> pluginConverter(Class<T> pluginClass, T defaultInstance)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.