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 connectionClientInfo
int
getHost()
get the olap server hostget the username's passwordgetPort()
get the olap server portint
get the amount of time to wait for response before firing a timeout exception.get the usernameboolean
get whether ssl connection is preferred or not.void
setClientInfo
(ClientInfo info) set the client information of this connectionClientInfo
void
setContextId
(int contextId) void
set the host of the olap server.void
setPassword
(String password) set the password of the user in olap server.void
set the port of the olap connection.void
setSslPreferred
(boolean sslPreferred) set whether ssl connection is preferred or not.void
setTimeout
(int timeout) set the amount of time in milliseconds to wait for response before firing a timeout exception.void
setUsername
(String username) set the user name in olap server.
-
Constructor Details
-
ConnectionConfiguration
public ConnectionConfiguration()
-
-
Method Details
-
getContextId
public int getContextId()- Specified by:
getContextId
in interfaceIConnectionConfiguration
-
setContextId
public void setContextId(int contextId) -
getHost
Description copied from interface:IConnectionConfiguration
get the olap server host- Specified by:
getHost
in interfaceIConnectionConfiguration
- Returns:
- host olap host
-
getPort
Description copied from interface:IConnectionConfiguration
get the olap server port- Specified by:
getPort
in interfaceIConnectionConfiguration
- Returns:
- port olap port
-
getUsername
Description copied from interface:IConnectionConfiguration
get the username- Specified by:
getUsername
in interfaceIConnectionConfiguration
- Returns:
- username olap password
-
getEncodedUsername
-
getPassword
Description copied from interface:IConnectionConfiguration
get the username's password- Specified by:
getPassword
in interfaceIConnectionConfiguration
- Returns:
- password olap user password
-
getEncodedPassword
-
getTimeout
public int getTimeout()Description copied from interface:IConnectionConfiguration
get the amount of time to wait for response before firing a timeout exception.- Specified by:
getTimeout
in interfaceIConnectionConfiguration
- Returns:
- timeout connection timeout
-
isSslPreferred
public boolean isSslPreferred()Description copied from interface:IConnectionConfiguration
get whether ssl connection is preferred or not. It only has an effect if olap server ssl mode is optionalIConnectionInfo.EncryptionType.ENCRYPTION_OPTIONAL
- Specified by:
isSslPreferred
in interfaceIConnectionConfiguration
- Returns:
- sslPreferred if true ssl connection will be used when olap encryption mode is optional, otherwise false.
-
setHost
Description copied from interface:IConnectionConfiguration
set the host of the olap server.- Specified by:
setHost
in interfaceIConnectionConfiguration
- Parameters:
host
- olap host
-
setPort
Description copied from interface:IConnectionConfiguration
set the port of the olap connection.- Specified by:
setPort
in interfaceIConnectionConfiguration
- Parameters:
port
- olap port
-
setUsername
Description copied from interface:IConnectionConfiguration
set the user name in olap server.- Specified by:
setUsername
in interfaceIConnectionConfiguration
- Parameters:
username
- user name
-
setPassword
Description copied from interface:IConnectionConfiguration
set the password of the user in olap server.- Specified by:
setPassword
in interfaceIConnectionConfiguration
- Parameters:
password
- olap user password
-
setTimeout
public void setTimeout(int timeout) Description copied from interface:IConnectionConfiguration
set the amount of time in milliseconds to wait for response before firing a timeout exception.- Specified by:
setTimeout
in interfaceIConnectionConfiguration
- Parameters:
timeout
- connection timeout
-
setSslPreferred
public void setSslPreferred(boolean sslPreferred) Description copied from interface:IConnectionConfiguration
set whether ssl connection is preferred or not. It only has an effect if olap server ssl mode is optionalIConnectionInfo.EncryptionType.ENCRYPTION_OPTIONAL
- Specified by:
setSslPreferred
in interfaceIConnectionConfiguration
- Parameters:
sslPreferred
- true ssl connection will be used when olap encryption mode is optional, otherwise false.
-
getClientInfo
Description copied from interface:IConnectionConfiguration
get the client information of this connectionClientInfo
- Specified by:
getClientInfo
in interfaceIConnectionConfiguration
- Returns:
- client client info
-
setClientInfo
Description copied from interface:IConnectionConfiguration
set the client information of this connectionClientInfo
- Specified by:
setClientInfo
in interfaceIConnectionConfiguration
- Parameters:
info
- client info
-
copyOf
- Specified by:
copyOf
in interfaceIConnectionConfiguration
-