Package org.jivesoftware.smack.packet
Class StreamOpen
- java.lang.Object
-
- org.jivesoftware.smack.packet.StreamOpen
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,Nonza
,TopLevelStreamElement
,XmlLangElement
public class StreamOpen extends java.lang.Object implements Nonza
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 java.lang.String
CLIENT_NAMESPACE
static java.lang.String
ELEMENT
static java.lang.String
SERVER_NAMESPACE
static java.lang.String
VERSION
RFC 6120 § 4.7.5.
-
Constructor Summary
Constructors Constructor Description StreamOpen(java.lang.CharSequence to)
StreamOpen(java.lang.CharSequence to, java.lang.CharSequence from, java.lang.String id)
StreamOpen(java.lang.CharSequence to, java.lang.CharSequence from, java.lang.String id, java.lang.String lang, StreamOpen.StreamContentNamespace ns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getElementName()
Returns the root element name.java.lang.String
getNamespace()
Returns the root element XML namespace.XmlStringBuilder
toXML(XmlEnvironment enclosingXmlEnvironment)
-
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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
CLIENT_NAMESPACE
public static final java.lang.String CLIENT_NAMESPACE
- See Also:
- Constant Field Values
-
SERVER_NAMESPACE
public static final java.lang.String SERVER_NAMESPACE
- See Also:
- Constant Field Values
-
VERSION
public static final java.lang.String VERSION
RFC 6120 § 4.7.5.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StreamOpen
public StreamOpen(java.lang.CharSequence to)
-
StreamOpen
public StreamOpen(java.lang.CharSequence to, java.lang.CharSequence from, java.lang.String id)
-
StreamOpen
public StreamOpen(java.lang.CharSequence to, java.lang.CharSequence from, java.lang.String id, java.lang.String lang, StreamOpen.StreamContentNamespace ns)
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingXmlEnvironment)
-
-