Smack

org.jivesoftware.smackx.packet
Class Bytestream.Activate

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

public static class Bytestream.Activate
extends Object
implements PacketExtension

The packet sent by the stream initiator to the stream proxy to activate the connection.

Author:
Alexander Wenckus

Field Summary
static String ELEMENTNAME
           
 String NAMESPACE
           
 
Constructor Summary
Bytestream.Activate(String target)
          Default constructor specifying the target of the stream.
 
Method Summary
 String getElementName()
          Returns the root element name.
 String getNamespace()
          Returns the root element XML namespace.
 String getTarget()
          Returns the target of the activation.
 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.Activate

public Bytestream.Activate(String target)
Default constructor specifying the target of the stream.

Parameters:
target - The target of the stream.
Method Detail

getTarget

public String getTarget()
Returns the target of the activation.

Returns:
Returns the target of the activation.

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.