Package org.jivesoftware.smack.packet
Class AbstractStreamOpen
- java.lang.Object
-
- org.jivesoftware.smack.packet.AbstractStreamOpen
-
- All Implemented Interfaces:
Element
,NamedElement
,Nonza
,TopLevelStreamElement
,XmlElement
,XmlLangElement
- Direct Known Subclasses:
StreamOpen
,WebSocketOpenElement
public abstract class AbstractStreamOpen extends Object implements Nonza
AbstractStreamOpen is actually aTopLevelStreamElement
, however we implementNonza
here. This is because,XMPPConnection
doesn't yet support sendingTopLevelStreamElement
directly and the same can only be achieved throughXMPPConnection.sendNonza(Nonza)
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_NAMESPACE
protected String
contentNamespace
RFC 6120 § 4.8.2.static String
ETHERX_JABBER_STREAMS_NAMESPACE
protected String
from
RFC 6120 § 4.7.1.protected String
id
RFC 6120 § 4.7.3.protected String
lang
RFC 6120 § 4.7.4.static String
SERVER_NAMESPACE
protected String
to
RFC 6120 § 4.7.2.static String
VERSION
RFC 6120 § 4.7.5.
-
Constructor Summary
Constructors Constructor Description AbstractStreamOpen(CharSequence to, CharSequence from, String id, String lang)
AbstractStreamOpen(CharSequence to, CharSequence from, String id, String lang, StreamOpen.StreamContentNamespace ns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCommonAttributes(XmlStringBuilder xml)
-
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.NamedElement
getElementName
-
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getNamespace, getQName
-
-
-
-
Field Detail
-
ETHERX_JABBER_STREAMS_NAMESPACE
public static final String ETHERX_JABBER_STREAMS_NAMESPACE
- See Also:
- Constant Field Values
-
CLIENT_NAMESPACE
public static final String CLIENT_NAMESPACE
- See Also:
- Constant Field Values
-
SERVER_NAMESPACE
public static final String SERVER_NAMESPACE
- See Also:
- Constant Field Values
-
VERSION
public static final String VERSION
RFC 6120 § 4.7.5.- See Also:
- Constant Field Values
-
contentNamespace
protected final String contentNamespace
RFC 6120 § 4.8.2.
-
-
Constructor Detail
-
AbstractStreamOpen
public AbstractStreamOpen(CharSequence to, CharSequence from, String id, String lang)
-
AbstractStreamOpen
public AbstractStreamOpen(CharSequence to, CharSequence from, String id, String lang, StreamOpen.StreamContentNamespace ns)
-
-
Method Detail
-
addCommonAttributes
protected final void addCommonAttributes(XmlStringBuilder xml)
-
-