Class ConnectionInfo
java.lang.Object
com.nomagic.magicdraw.esi.session.ConnectionInfo
Information where to connect when going online.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionInfo
(String hostPort, String userName, boolean useSSL, UUID clusterID) Creates and initializes a newConnectionInfo
from the specified parameters.ConnectionInfo
(String hostPort, String userName, KeyStore keyStore, UUID clusterID) Creates and initializes a newConnectionInfo
from the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns clusterID of the connection info.int
hashCode()
boolean
isCompatible
(ConnectionInfo other) Checks whether the specified connection info is compatible with the current connection info.boolean
void
setClusterID
(UUID clusterID) Sets a new clusterID.void
setUserName
(String userName) Setter for user name
-
Constructor Details
-
ConnectionInfo
public ConnectionInfo(String hostPort, @CheckForNull String userName, @CheckForNull KeyStore keyStore, @CheckForNull UUID clusterID) Creates and initializes a newConnectionInfo
from the specified parameters.- Parameters:
hostPort
- host and port.userName
- user name.keyStore
- SSL configuration.clusterID
- cluster ID.
-
ConnectionInfo
public ConnectionInfo(String hostPort, @CheckForNull String userName, boolean useSSL, @CheckForNull UUID clusterID) Creates and initializes a newConnectionInfo
from the specified parameters.- Parameters:
hostPort
- host and port.userName
- user name.useSSL
- specifies if this connection info uses SSL.clusterID
- cluster ID.
-
-
Method Details
-
isUseSecureConnection
public boolean isUseSecureConnection()- Returns:
true
when secure connection must be used
-
getHostPort
- Returns:
- host and port
-
getConnectionRepresentation
- Returns:
- connection representation
-
getUserName
- Returns:
- user name
-
getLoginName
- Returns:
- user login name
-
setUserName
Setter for user name- Parameters:
userName
- user name
-
getUserRepresentation
- Returns:
- user representation
-
getClusterID
Returns clusterID of the connection info.- Returns:
- clusterID.
-
setClusterID
Sets a new clusterID.- Parameters:
clusterID
- new cluster ID.
-
getKeystore
- Returns:
- key store when secure connection is used, otherwise -
null
-
isCompatible
Checks whether the specified connection info is compatible with the current connection info. Compatible means that the connection info is from the same cluster and with the same user.- Parameters:
other
- another connection info.- Returns:
- true if compatible.
-
equals
-
hashCode
public int hashCode()
-