Class ConnectionParameters

    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionParameters​(java.lang.String address, int port)
      Create new instance of parameters specifying unencrypted connection.
      ConnectionParameters​(java.lang.String address, int port, java.lang.String certificatePath)
      Create new instance of parameters specifying TLS connection.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAddress​()
      Get IP address or host name of d2connector.exe process location.
      java.lang.String getCertificatePath​()
      Get optional path to file with certificate.
      java.lang.String getConnectionString​()
      Get formated address:port string.
      int getPort​()
      Get port number on which d2connector.exe process listens for JAPI connections.
      int hashCode​()  
      java.lang.String toString​()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConnectionParameters

        public ConnectionParameters​(java.lang.String address,
                                    int port,
                                    java.lang.String certificatePath)
        Create new instance of parameters specifying TLS connection.
        Parameters:
        address - IP address or host name of d2connector.exe process location
        port - port number on which d2connector.exe process listens for JAPI connections
        certificatePath - path to file with certificate
      • ConnectionParameters

        public ConnectionParameters​(java.lang.String address,
                                    int port)
        Create new instance of parameters specifying unencrypted connection.
        Parameters:
        address - IP address or host name of d2connector.exe process location
        port - port number on which d2connector.exe process listens for JAPI connections
    • Method Detail

      • getAddress

        public java.lang.String getAddress​()
        Get IP address or host name of d2connector.exe process location.
        Returns:
        IP address or host name of d2connector.exe process location
      • getCertificatePath

        public java.lang.String getCertificatePath​()
        Get optional path to file with certificate.
        Returns:
        optional path to file with certificate
      • getPort

        public int getPort​()
        Get port number on which d2connector.exe process listens for JAPI connections.
        Returns:
        port number on which d2connector.exe process listens for JAPI connections
      • getConnectionString

        public java.lang.String getConnectionString​()
        Get formated address:port string.
        Returns:
        formated address:port string
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode​()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object