Class Bytestream.StreamHost

java.lang.Object
org.jivesoftware.smackx.bytestreams.socks5.packet.Bytestream.StreamHost
All Implemented Interfaces:
Element, ExtensionElement, NamedElement, XmlElement, XmlLangElement
Enclosing class:
Bytestream

public static class Bytestream.StreamHost extends Object
Stanza extension that represents a potential SOCKS5 proxy for the file transfer. Stream hosts are forwarded to the target of the file transfer who then chooses and connects to one.
  • Field Details

  • Constructor Details

    • StreamHost

      public StreamHost(Jid jid, String address)
    • StreamHost

      public StreamHost(Jid jid, 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, 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 Details

    • getJID

      public Jid getJID()
      Returns the JID of the stream host.
      Returns:
      Returns the JID of the stream host.
    • 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

      Description copied from interface: NamedElement
      Returns the root element name.
      Returns:
      the element name.
    • toXML

      public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getNamespace

      public final String getNamespace()
      Description copied from interface: XmlElement
      Returns the root element XML namespace.
      Specified by:
      getNamespace in interface XmlElement
      Returns:
      the namespace.