public abstract class AbstractConnectionConfiguration<T> extends Object implements LoginConnectionConfiguration<T>
| Modifier and Type | Field and Description |
|---|---|
static com.complexible.stardog.api.OptionParser |
mOptionParser |
protected Options |
mOptions |
CREDENTIALS, KRB5_REVERSE_DNS, PASSWORD, SERVER, USERNAME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConnectionConfiguration() |
protected |
AbstractConnectionConfiguration(Options theOptions) |
| Modifier and Type | Method and Description |
|---|---|
AbstractConnectionConfiguration<T> |
credentials(ConnectionCredentials theConnectionCredentials)
Specify the credentials that should be used to authenticate to the database.
|
AbstractConnectionConfiguration<T> |
credentials(String theUsername,
String thePassword)
Specify the username and password that should be used to authenticate to the database.
|
Options |
getOptions()
Return the current options of this configuration.
|
AbstractConnectionConfiguration<T> |
server(String theServerURL)
Specify the URL of the database server.
|
<S> AbstractConnectionConfiguration<T> |
set(Option<S> theOption,
S theValue)
Set an arbitrary option.
|
LoginConnectionConfiguration<T> |
setAll(Options theOptions)
Set all the specified options
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectprotected final Options mOptions
public static final com.complexible.stardog.api.OptionParser mOptionParser
protected AbstractConnectionConfiguration()
protected AbstractConnectionConfiguration(Options theOptions)
public <S> AbstractConnectionConfiguration<T> set(Option<S> theOption, S theValue)
set in interface LoginConnectionConfiguration<T>theOption - the option to settheValue - the value of the optionpublic AbstractConnectionConfiguration<T> credentials(String theUsername, String thePassword)
credentials in interface LoginConnectionConfiguration<T>theUsername - the usernamethePassword - the passwordpublic AbstractConnectionConfiguration<T> credentials(ConnectionCredentials theConnectionCredentials)
credentials in interface LoginConnectionConfiguration<T>theConnectionCredentials - the credentialspublic AbstractConnectionConfiguration<T> server(String theServerURL)
server in interface LoginConnectionConfiguration<T>theServerURL - the server urlpublic LoginConnectionConfiguration<T> setAll(Options theOptions)
setAll in interface LoginConnectionConfiguration<T>theOptions - the options to setpublic Options getOptions()
getOptions in interface LoginConnectionConfiguration<T>Copyright © 2010-2016 Stardog Union. All Rights Reserved.