Package rocks.xmpp.websocket.model
Class Open
- java.lang.Object
-
- rocks.xmpp.websocket.model.Open
-
- All Implemented Interfaces:
LanguageElement
,SessionOpen
,StreamElement
public final class Open extends Object implements SessionOpen
The implementation of the<open/>
element in theurn:ietf:params:xml:ns:xmpp-framing
namespace.- Since:
- 0.7.0
-
-
Constructor Summary
Constructors Constructor Description Open(Jid to, Locale language)
Creates an<open/>
element with a 'to' and 'lang' attribute.Open(Jid to, Jid from, String id, Locale language)
Creates an<open/>
element with a 'to', 'from', 'id' and 'lang' attribute.Open(Jid to, Jid from, String id, Locale language, String version)
Creates an<open/>
element with a 'to', 'from', 'id' and 'lang' attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Jid
getFrom()
Gets the 'from' attribute.String
getId()
Gets the 'id' attribute.Locale
getLanguage()
Gets the 'xml:lang' attribute.Jid
getTo()
Gets the 'to' attribute.String
getVersion()
Gets the 'version' attribute.String
toString()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface rocks.xmpp.core.LanguageElement
getLanguage
-
Methods inherited from interface rocks.xmpp.core.session.model.SessionOpen
getFrom, getId, getTo, getVersion
-
-
-
-
Constructor Detail
-
Open
public Open(Jid to, Locale language)
Creates an<open/>
element with a 'to' and 'lang' attribute.- Parameters:
to
- The 'to' attribute.language
- The 'lang' attribute.
-
Open
public Open(Jid to, Jid from, String id, Locale language)
Creates an<open/>
element with a 'to', 'from', 'id' and 'lang' attribute.- Parameters:
to
- The 'to' attribute.from
- The 'from' attribute.id
- The 'id' attribute.language
- The 'lang' attribute.
-
Open
public Open(Jid to, Jid from, String id, Locale language, String version)
Creates an<open/>
element with a 'to', 'from', 'id' and 'lang' attribute.- Parameters:
to
- The 'to' attribute.from
- The 'from' attribute.id
- The 'id' attribute.language
- The 'lang' attribute.version
- The 'version' attribute.
-
-
Method Detail
-
getTo
public final Jid getTo()
Gets the 'to' attribute.- Returns:
- The 'to' attribute.
-
getFrom
public final Jid getFrom()
Gets the 'from' attribute.- Returns:
- The 'from' attribute.
-
getVersion
public final String getVersion()
Gets the 'version' attribute.- Returns:
- The 'version' attribute.
-
getId
public final String getId()
Gets the 'id' attribute.- Returns:
- The 'id' attribute.
-
getLanguage
public final Locale getLanguage()
Gets the 'xml:lang' attribute.- Specified by:
getLanguage
in interfaceLanguageElement
- Returns:
- The 'xml:lang' attribute.
-
-