Package com.jedox.palojlib.main
Class ConnectionConfiguration
java.lang.Object
com.jedox.palojlib.main.ConnectionConfiguration
- All Implemented Interfaces:
IConnectionConfiguration
- Direct Known Subclasses:
HttpHandlerInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyOf()get the client information of this connectionClientInfointgetHost()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 usernamebooleanget whether ssl connection is preferred or not.voidsetClientInfo(ClientInfo info) set the client information of this connectionClientInfovoidsetContextId(int contextId) voidset 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.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.
-
Constructor Details
-
ConnectionConfiguration
public ConnectionConfiguration()
-
-
Method Details
-
getContextId
public int getContextId()- Specified by:
getContextIdin interfaceIConnectionConfiguration
-
setContextId
public void setContextId(int contextId) -
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
-
copyOf
- Specified by:
copyOfin interfaceIConnectionConfiguration
-