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 |
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() |
String |
keyPassword() |
File |
keystore() |
String |
keystorePassword() |
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
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 ConnectionConfig
BuiltInConnectionProperty.SCHEMA
public String timeZone()
timeZone
in interface ConnectionConfig
BuiltInConnectionProperty.TIME_ZONE
public Service.Factory factory()
factory
in interface ConnectionConfig
BuiltInConnectionProperty.FACTORY
public String url()
url
in interface ConnectionConfig
BuiltInConnectionProperty.URL
public String serialization()
serialization
in interface ConnectionConfig
BuiltInConnectionProperty.SERIALIZATION
public String authentication()
authentication
in interface ConnectionConfig
BuiltInConnectionProperty.AUTHENTICATION
public String avaticaUser()
avaticaUser
in interface ConnectionConfig
BuiltInConnectionProperty.AVATICA_USER
public String avaticaPassword()
avaticaPassword
in interface ConnectionConfig
BuiltInConnectionProperty.AVATICA_PASSWORD
public AvaticaHttpClientFactory httpClientFactory()
httpClientFactory
in interface ConnectionConfig
BuiltInConnectionProperty.HTTP_CLIENT_FACTORY
public String httpClientClass()
httpClientClass
in interface ConnectionConfig
BuiltInConnectionProperty.HTTP_CLIENT_IMPL
public String kerberosPrincipal()
kerberosPrincipal
in interface ConnectionConfig
BuiltInConnectionProperty.PRINCIPAL
public File kerberosKeytab()
kerberosKeytab
in interface ConnectionConfig
BuiltInConnectionProperty.KEYTAB
public File truststore()
truststore
in interface ConnectionConfig
BuiltInConnectionProperty.TRUSTSTORE
public String truststorePassword()
truststorePassword
in interface ConnectionConfig
BuiltInConnectionProperty.TRUSTSTORE_PASSWORD
public File keystore()
keystore
in interface ConnectionConfig
BuiltInConnectionProperty.KEYSTORE
public String keystorePassword()
keystorePassword
in interface ConnectionConfig
BuiltInConnectionProperty.KEYSTORE_PASSWORD
public String keyPassword()
keyPassword
in interface ConnectionConfig
BuiltInConnectionProperty.KEY_PASSWORD
public HostnameVerificationConfigurable.HostnameVerification hostnameVerification()
hostnameVerification
in interface ConnectionConfig
BuiltInConnectionProperty.HOSTNAME_VERIFICATION
public 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.