Smack

org.jivesoftware.smackx.packet
Class Bytestream.StreamHostUsed

java.lang.Object
  extended by org.jivesoftware.smackx.packet.Bytestream.StreamHostUsed
All Implemented Interfaces:
PacketExtension
Enclosing class:
Bytestream

public static class Bytestream.StreamHostUsed
extends Object
implements PacketExtension

After selected a Socks5 stream host and successfully connecting, the target of the file transfer returns a byte stream packet with the stream host used extension.

Author:
Alexander Wenckus

Field Summary
static String ELEMENTNAME
           
 String NAMESPACE
           
 
Constructor Summary
Bytestream.StreamHostUsed(String JID)
          Default constructor.
 
Method Summary
 String getElementName()
          Returns the root element name.
 String getJID()
          Returns the jabber ID of the selected stream host.
 String getNamespace()
          Returns the root element XML namespace.
 String toXML()
          Returns the XML reppresentation of the PacketExtension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public String NAMESPACE

ELEMENTNAME

public static String ELEMENTNAME
Constructor Detail

Bytestream.StreamHostUsed

public Bytestream.StreamHostUsed(String JID)
Default constructor.

Parameters:
JID - The jabber ID of the selected stream host.
Method Detail

getJID

public String getJID()
Returns the jabber ID of the selected stream host.

Returns:
Returns the jabber ID of the selected stream host.

getNamespace

public String getNamespace()
Description copied from interface: PacketExtension
Returns the root element XML namespace.

Specified by:
getNamespace in interface PacketExtension
Returns:
the namespace.

getElementName

public String getElementName()
Description copied from interface: PacketExtension
Returns the root element name.

Specified by:
getElementName in interface PacketExtension
Returns:
the element name.

toXML

public String toXML()
Description copied from interface: PacketExtension
Returns the XML reppresentation of the PacketExtension.

Specified by:
toXML in interface PacketExtension
Returns:
the packet extension as XML.

Smack

Copyright © 2003-2007 Jive Software.