Class ConnectionInfo


  • public class ConnectionInfo
    extends java.lang.Object
    Represents a connection property list created by eggPlant.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String Availability()
      The last-known availability status of the SUT.
      boolean Bonjour()
      Whether or not the SUT was found via Bonjour or zeroconf.
      int ColorDepth()
      The color depth with which the SUT is shown in the Viewer window.
      boolean Connected()
      Whether or not Eggplant is connected to the SUT..
      java.lang.String DeviceManufacturer()
      The manufacturer of a mobile device you are connected to.
      java.lang.String DeviceModel()
      The manufacturer of a mobile device you are connected to.
      boolean DeviceSupportsPointerEvents()
      Whether or not a mobile device supports pointer events such as MoveTo..
      java.lang.String DeviceVersion()
      The version of the mobile device you are connected to.
      java.lang.Object get​(java.lang.String key)
      Gets the Object in the connection property list with a particular key.
      java.lang.String Name()
      Gets the name of the connection.
      java.lang.String Pass_code()
      The password for the VNC server, encrypted.
      int PortNum()
      The port number used by the VNC server on the SUT.
      boolean Reverse()
      Whether or not the VNC connection is a reverse connection (i.e.
      Size ScreenSize()
      The width and height of the SUT screen.
      java.lang.String ServerID()
      The host name, IP address, or display name of the SUT.
      java.lang.String sshHost()
      The host name or IP of a computer hosting an SSH connection.
      java.lang.String sshPass_code()
      The password to the user account on the SSH server, encrypted.
      java.lang.String sshUser()
      The user account on the SSH host.
      java.lang.String Status()
      Whether or not Eggplant is connected to the SUT.
      boolean Visible()
      Whether or not Eggplant is connected to the SUT.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        public java.lang.Object get​(java.lang.String key)
        Gets the Object in the connection property list with a particular key.
        Parameters:
        key - the key
        Returns:
        the object
      • Name

        public java.lang.String Name()
        Gets the name of the connection.
        Returns:
        The name of the connection
      • Status

        public java.lang.String Status()
        Whether or not Eggplant is connected to the SUT. ("Connected" or "Not Connected").
        Returns:
        "Connected" or "Not Connected"
      • Connected

        public boolean Connected()
        Whether or not Eggplant is connected to the SUT..
        Returns:
        true, if Eggplant is connected to the SUT.
      • Visible

        public boolean Visible()
        Whether or not Eggplant is connected to the SUT.
        Returns:
        Whether or not Eggplant is connected to the SUT.
      • ColorDepth

        public int ColorDepth()
        The color depth with which the SUT is shown in the Viewer window.
        Returns:
        8, 16 or 32
      • Bonjour

        public boolean Bonjour()
        Whether or not the SUT was found via Bonjour or zeroconf.
        Returns:
        Whether or not the SUT was found via Bonjour or zeroconf.
      • Availability

        public java.lang.String Availability()
        The last-known availability status of the SUT.
        Returns:
        The last-known availability status of the SUT.
      • ServerID

        public java.lang.String ServerID()
        The host name, IP address, or display name of the SUT.
        Returns:
        The host name, IP address, or display name of the SUT.
      • Reverse

        public boolean Reverse()
        Whether or not the VNC connection is a reverse connection (i.e. initiated by the SUT).
        Returns:
        Whether or not the VNC connection is a reverse connection (i.e. initiated by the SUT).
      • ScreenSize

        public Size ScreenSize()
                        throws BadValueException
        The width and height of the SUT screen.
        Returns:
        the screen size
        Throws:
        BadValueException - the screen size was not in the expected format
      • PortNum

        public int PortNum()
        The port number used by the VNC server on the SUT.
        Returns:
        the port number
      • DeviceManufacturer

        public java.lang.String DeviceManufacturer()
        The manufacturer of a mobile device you are connected to. (This property is only included if the VNC server sends the information.)
        Returns:
        the device manufacturer, or null if not sent
      • DeviceModel

        public java.lang.String DeviceModel()
        The manufacturer of a mobile device you are connected to. (This property is only included if the VNC server sends the information.)
        Returns:
        the device model, or null if not sent
      • DeviceSupportsPointerEvents

        public boolean DeviceSupportsPointerEvents()
        Whether or not a mobile device supports pointer events such as MoveTo..
        Returns:
        Whether or not a mobile device supports pointer events such as MoveTo..
      • DeviceVersion

        public java.lang.String DeviceVersion()
        The version of the mobile device you are connected to. (This property is only included if the VNC server sends the information.)
        Returns:
        the device version, or null if not sent
      • Pass_code

        public java.lang.String Pass_code()
        The password for the VNC server, encrypted.
        Returns:
        The password for the VNC server, encrypted.
      • sshHost

        public java.lang.String sshHost()
        The host name or IP of a computer hosting an SSH connection.
        Returns:
        The host name or IP of a computer hosting an SSH connection.
      • sshPass_code

        public java.lang.String sshPass_code()
        The password to the user account on the SSH server, encrypted.
        Returns:
        The password to the user account on the SSH server, encrypted.
      • sshUser

        public java.lang.String sshUser()
        The user account on the SSH host.
        Returns:
        The user account on the SSH host.