Class Bytestream.StreamHost

java.lang.Object
org.jivesoftware.smackx.bytestreams.socks5.packet.Bytestream.StreamHost
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final QName
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    StreamHost(org.jxmpp.jid.Jid jid, String address)
     
    StreamHost(org.jxmpp.jid.Jid jid, String address, int port)
    Default constructor.
    StreamHost(org.jxmpp.jid.Jid jid, InetAddress address, int port)
     
    StreamHost(org.jxmpp.jid.Jid jid, org.jivesoftware.smack.util.InternetAddress address, int port)
    Stream Host constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jivesoftware.smack.util.InternetAddress
    Returns the internet address of the stream host.
     
    org.jxmpp.jid.Jid
    Returns the JID of the stream host.
    final String
     
    int
    Returns the port on which the potential stream host would accept the connection.
     
    org.jivesoftware.smack.util.XmlStringBuilder
    toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.jivesoftware.smack.packet.Element

    toXML, toXML

    Methods inherited from interface org.jivesoftware.smack.packet.XmlElement

    getLanguage, getQName
  • Field Details

  • Constructor Details

    • StreamHost

      public StreamHost(org.jxmpp.jid.Jid jid, String address)
    • StreamHost

      public StreamHost(org.jxmpp.jid.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(org.jxmpp.jid.Jid jid, InetAddress address, int port)
    • StreamHost

      public StreamHost(org.jxmpp.jid.Jid jid, org.jivesoftware.smack.util.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 org.jxmpp.jid.Jid getJID()
      Returns the JID of the stream host.
      Returns:
      Returns the JID of the stream host.
    • getAddress

      public org.jivesoftware.smack.util.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 String getElementName()
    • toXML

      public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
    • toString

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

      public final String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement