Package org.jivesoftware.smack.packet
Class StreamOpen
- java.lang.Object
-
- org.jivesoftware.smack.packet.AbstractStreamOpen
-
- org.jivesoftware.smack.packet.StreamOpen
-
- All Implemented Interfaces:
Element
,NamedElement
,Nonza
,TopLevelStreamElement
,XmlElement
,XmlLangElement
public final class StreamOpen extends AbstractStreamOpen
The stream open tag.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StreamOpen.StreamContentNamespace
-
Field Summary
Fields Modifier and Type Field Description static String
ELEMENT
static String
UNPREFIXED_ELEMENT
-
Fields inherited from class org.jivesoftware.smack.packet.AbstractStreamOpen
CLIENT_NAMESPACE, contentNamespace, ETHERX_JABBER_STREAMS_NAMESPACE, from, id, lang, SERVER_NAMESPACE, to, VERSION
-
-
Constructor Summary
Constructors Constructor Description StreamOpen(CharSequence to)
StreamOpen(CharSequence to, CharSequence from, String id)
StreamOpen(CharSequence to, CharSequence from, String id, String lang)
StreamOpen(CharSequence to, CharSequence from, String id, String lang, StreamOpen.StreamContentNamespace ns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getElementName()
Returns the root element name.String
getNamespace()
Returns the root element XML namespace.XmlStringBuilder
toXML(XmlEnvironment enclosingXmlEnvironment)
-
Methods inherited from class org.jivesoftware.smack.packet.AbstractStreamOpen
addCommonAttributes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
-
-
-
Field Detail
-
UNPREFIXED_ELEMENT
public static final String UNPREFIXED_ELEMENT
- See Also:
- Constant Field Values
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StreamOpen
public StreamOpen(CharSequence to)
-
StreamOpen
public StreamOpen(CharSequence to, CharSequence from, String id)
-
StreamOpen
public StreamOpen(CharSequence to, CharSequence from, String id, String lang)
-
StreamOpen
public StreamOpen(CharSequence to, CharSequence from, String id, String lang, StreamOpen.StreamContentNamespace ns)
-
-
Method Detail
-
getNamespace
public String getNamespace()
Description copied from interface:XmlElement
Returns the root element XML namespace.- Returns:
- the namespace.
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Returns:
- the element name.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingXmlEnvironment)
-
-