public final class Open extends java.lang.Object implements SessionOpen
The implementation of the <open/> element in the urn:ietf:params:xml:ns:xmpp-framing namespace.
| Constructor and Description |
|---|
Open(Jid to,
Jid from,
java.lang.String id,
java.util.Locale language)
Creates an
<open/> element with a ‘to’, ‘from’, ‘id’ and ‘lang’ attribute. |
Open(Jid to,
Jid from,
java.lang.String id,
java.util.Locale language,
java.lang.String version)
Creates an
<open/> element with a ‘to’, ‘from’, ‘id’ and ‘lang’ attribute. |
Open(Jid to,
java.util.Locale language)
Creates an
<open/> element with a ‘to’ and ‘lang’ attribute. |
| Modifier and Type | Method and Description |
|---|---|
Jid |
getFrom()
Gets the 'from' attribute.
|
java.lang.String |
getId()
Gets the 'id' attribute.
|
java.util.Locale |
getLanguage()
Gets the 'xml:lang' attribute.
|
Jid |
getTo()
Gets the 'to' attribute.
|
java.lang.String |
getVersion()
Gets the 'version' attribute.
|
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFrom, getId, getLanguage, getTo, getVersionpublic Open(Jid to, java.util.Locale language)
Creates an <open/> element with a ‘to’ and ‘lang’ attribute.
to - The ‘to’ attribute.language - The ‘lang’ attribute.public Open(Jid to, Jid from, java.lang.String id, java.util.Locale language)
Creates an <open/> element with a ‘to’, ‘from’, ‘id’ and ‘lang’ attribute.
to - The ‘to’ attribute.from - The ‘from’ attribute.id - The ‘id’ attribute.language - The ‘lang’ attribute.public Open(Jid to, Jid from, java.lang.String id, java.util.Locale language, java.lang.String version)
Creates an <open/> element with a ‘to’, ‘from’, ‘id’ and ‘lang’ attribute.
to - The ‘to’ attribute.from - The ‘from’ attribute.id - The ‘id’ attribute.language - The ‘lang’ attribute.version - The ‘version’ attribute.public final java.lang.String toString()
toString in class java.lang.Objectpublic final Jid getTo()
public final Jid getFrom()
public final java.lang.String getVersion()
public final java.lang.String getId()
public final java.util.Locale getLanguage()
Copyright © 2014–2019 XMPP.rocks. All rights reserved.