Class Bytestream.StreamHost

    • Field Detail

      • ELEMENTNAME

        public static java.lang.String ELEMENTNAME
    • Constructor Detail

      • StreamHost

        public StreamHost​(Jid jid,
                          java.lang.String address)
      • StreamHost

        public StreamHost​(Jid jid,
                          java.lang.String address,
                          int port)
        Default constructor.
        Parameters:
        jid - The JID of the stream host.
        address - The internet address of the stream host.
        port - port of the stream host.
      • StreamHost

        public StreamHost​(Jid jid,
                          java.net.InetAddress address,
                          int port)
      • StreamHost

        public StreamHost​(Jid jid,
                          InternetAddress address,
                          int port)
        Stream Host constructor.
        Parameters:
        jid - The JID of the stream host.
        address - The internet address of the stream host.
        port - port of the stream host.
    • Method Detail

      • getJID

        public Jid getJID()
        Returns the JID of the stream host.
        Returns:
        Returns the JID of the stream host.
      • getAddress

        public InternetAddress getAddress()
        Returns the internet address of the stream host.
        Returns:
        Returns the internet address of the stream host.
      • getPort

        public int getPort()
        Returns the port on which the potential stream host would accept the connection.
        Returns:
        Returns the port on which the potential stream host would accept the connection.
      • getElementName

        public java.lang.String getElementName()
        Description copied from interface: NamedElement
        Returns the root element name.
        Returns:
        the element name.
      • toString

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