Package com.jedox.palojlib.main
Class ConnectionConfiguration
java.lang.Object
com.jedox.palojlib.main.ConnectionConfiguration
- All Implemented Interfaces:
IConnectionConfiguration
- Direct Known Subclasses:
HttpHandlerInfo,SessionConfiguration
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jedox.palojlib.interfaces.IConnectionConfiguration
IConnectionConfiguration.IClientInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyOf()get the client information of this connectionClientInfogetHost()get the olap server hostget the username's passwordgetPort()get the olap server portintget the amount of time to wait for response before firing a timeout exception.get the usernamebooleanReturnstrueif not using TLS/SSL has been enforced by prefixing host with schemehttp://,falseotherwise.booleanReturnstrueif using TLS/SSL has been enforced by prefixing host with schemehttps://or by setting port to 443,falseotherwise.booleanget whether ssl connection is preferred or not.voidoverwrite(IConnectionConfiguration config) voidset the client information of this connectionClientInfovoidset the host of the olap server.voidsetPassword(String password) set the password of the user in olap server.voidset the port of the olap connection.voidsetSession(String session) voidsetSslPreferred(boolean sslPreferred) set whether ssl connection is preferred or not.voidsetTimeout(int timeout) set the amount of time in milliseconds to wait for response before firing a timeout exception.voidsetUsername(String username) set the user name in olap server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jedox.palojlib.interfaces.IConnectionConfiguration
hasSession
-
Constructor Details
-
ConnectionConfiguration
public ConnectionConfiguration()
-
-
Method Details
-
getHost
Description copied from interface:IConnectionConfigurationget the olap server host- Specified by:
getHostin interfaceIConnectionConfiguration- Returns:
- host olap host
-
getPort
Description copied from interface:IConnectionConfigurationget the olap server port- Specified by:
getPortin interfaceIConnectionConfiguration- Returns:
- port olap port
-
getUsername
Description copied from interface:IConnectionConfigurationget the username- Specified by:
getUsernamein interfaceIConnectionConfiguration- Returns:
- username olap password
-
getEncodedUsername
-
getPassword
Description copied from interface:IConnectionConfigurationget the username's password- Specified by:
getPasswordin interfaceIConnectionConfiguration- Returns:
- password olap user password
-
getEncodedPassword
-
getTimeout
public int getTimeout()Description copied from interface:IConnectionConfigurationget the amount of time to wait for response before firing a timeout exception.- Specified by:
getTimeoutin interfaceIConnectionConfiguration- Returns:
- timeout connection timeout
-
isSslPreferred
public boolean isSslPreferred()Description copied from interface:IConnectionConfigurationget whether ssl connection is preferred or not. It only has an effect if olap server ssl mode is optionalIConnectionInfo.EncryptionType.ENCRYPTION_OPTIONAL- Specified by:
isSslPreferredin interfaceIConnectionConfiguration- Returns:
- sslPreferred if true ssl connection will be used when olap encryption mode is optional, otherwise false.
-
setHost
Description copied from interface:IConnectionConfigurationset the host of the olap server.- Specified by:
setHostin interfaceIConnectionConfiguration- Parameters:
host- olap host
-
setPort
Description copied from interface:IConnectionConfigurationset the port of the olap connection.- Specified by:
setPortin interfaceIConnectionConfiguration- Parameters:
port- olap port
-
setUsername
Description copied from interface:IConnectionConfigurationset the user name in olap server.- Specified by:
setUsernamein interfaceIConnectionConfiguration- Parameters:
username- user name
-
setPassword
Description copied from interface:IConnectionConfigurationset the password of the user in olap server.- Specified by:
setPasswordin interfaceIConnectionConfiguration- Parameters:
password- olap user password
-
setTimeout
public void setTimeout(int timeout) Description copied from interface:IConnectionConfigurationset the amount of time in milliseconds to wait for response before firing a timeout exception.- Specified by:
setTimeoutin interfaceIConnectionConfiguration- Parameters:
timeout- connection timeout
-
setSslPreferred
public void setSslPreferred(boolean sslPreferred) Description copied from interface:IConnectionConfigurationset whether ssl connection is preferred or not. It only has an effect if olap server ssl mode is optionalIConnectionInfo.EncryptionType.ENCRYPTION_OPTIONAL- Specified by:
setSslPreferredin interfaceIConnectionConfiguration- Parameters:
sslPreferred- true ssl connection will be used when olap encryption mode is optional, otherwise false.
-
getClientInfo
Description copied from interface:IConnectionConfigurationget the client information of this connectionClientInfo- Specified by:
getClientInfoin interfaceIConnectionConfiguration- Returns:
- client client info
-
setClientInfo
Description copied from interface:IConnectionConfigurationset the client information of this connectionClientInfo- Specified by:
setClientInfoin interfaceIConnectionConfiguration- Parameters:
info- client info
-
isHttpsEnforced
public boolean isHttpsEnforced()Description copied from interface:IConnectionConfigurationReturnstrueif using TLS/SSL has been enforced by prefixing host with schemehttps://or by setting port to 443,falseotherwise.- Specified by:
isHttpsEnforcedin interfaceIConnectionConfiguration- Returns:
trueif using TLS/SSL has been enforced by prefixing host with schemehttps://or by setting port to 443,falseotherwise
-
isHttpEnforced
public boolean isHttpEnforced()Description copied from interface:IConnectionConfigurationReturnstrueif not using TLS/SSL has been enforced by prefixing host with schemehttp://,falseotherwise.- Specified by:
isHttpEnforcedin interfaceIConnectionConfiguration- Returns:
trueif not using TLS/SSL has been enforced by prefixing host with schemehttp://,falseotherwise
-
copyOf
- Specified by:
copyOfin interfaceIConnectionConfiguration
-
overwrite
- Specified by:
overwritein interfaceIConnectionConfiguration
-
getSession
- Specified by:
getSessionin interfaceIConnectionConfiguration
-
setSession
- Specified by:
setSessionin interfaceIConnectionConfiguration
-