Smack

org.jivesoftware.smackx.bytestreams.socks5.packet
Class Bytestream.StreamHostUsed

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

public static class Bytestream.StreamHostUsed
extends java.lang.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 java.lang.String ELEMENTNAME
           
 java.lang.String NAMESPACE
           
 
Constructor Summary
Bytestream.StreamHostUsed(java.lang.String JID)
          Default constructor.
 
Method Summary
 java.lang.String getElementName()
          Returns the root element name.
 java.lang.String getJID()
          Returns the JID of the selected stream host.
 java.lang.String getNamespace()
          Returns the root element XML namespace.
 java.lang.String toXML()
          Returns the XML representation 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 java.lang.String NAMESPACE

ELEMENTNAME

public static java.lang.String ELEMENTNAME
Constructor Detail

Bytestream.StreamHostUsed

public Bytestream.StreamHostUsed(java.lang.String JID)
Default constructor.

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

getJID

public java.lang.String getJID()
Returns the JID of the selected stream host.

Returns:
Returns the JID of the selected stream host.

getNamespace

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

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

getElementName

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

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

toXML

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

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

Smack

Copyright © 2003-2007 Jive Software.