Package com.uc4.communication
Class ConnectProperties
java.lang.Object
com.uc4.communication.ConnectProperties
Contains all properties which are required to connect to the Automation Engine.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectProperties
(int client, String user, String department, String secret) Creates a newConnectProperties
instance with default values for the CP connection (localhost) and language (english). -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
setCPConnection
(String hostname, int port) Sets the connection parameters of the communication process.protected void
This connection is registered to receive the specified kick messages.void
setLanguage
(char language) Sets the logon language.void
setTraceListener
(TraceListener trace) Enables or disables the XML trace.void
setTrustedCertFolderPath
(String trustedCertFolderPath) Sets an optional trustedCertFolderPath, which will be used to load additional certificates before opening the connectiontoString()
-
Constructor Details
-
ConnectProperties
Creates a newConnectProperties
instance with default values for the CP connection (localhost) and language (english).- Parameters:
client
- Clientuser
- User namedepartment
- Departmentsecret
- Password or token
-
-
Method Details
-
setTrustedCertFolderPath
Sets an optional trustedCertFolderPath, which will be used to load additional certificates before opening the connection- Parameters:
trustedCertFolderPath
- path to the folder where additional trusted certs are located
-
setTraceListener
Enables or disables the XML trace.- Parameters:
trace
- TraceListener instance ornull
to disable the trace.
-
setLanguage
public void setLanguage(char language) Sets the logon language.- Parameters:
language
- Allowed values are 'E'(=English), 'D' (=German) and 'F' (=French)
-
setCPConnection
Sets the connection parameters of the communication process.- Parameters:
hostname
- Hostname or IP addressport
- Port of the communication process
-
setKicks
This connection is registered to receive the specified kick messages.- Parameters:
kicks
- Comma separated list of kick messages.
-
hashCode
public int hashCode() -
equals
-
toString
-