public final class Close
extends java.lang.Object
The implementation of the <close/>
element in the urn:ietf:params:xml:ns:xmpp-framing
namespace.
Constructor and Description |
---|
Close()
Creates an empty
<close/> . |
Close(Jid to,
Jid from,
java.lang.String id,
java.util.Locale language,
java.lang.String version,
java.net.URI uri)
Creates an
<close/> element with a ‘to’, ‘from’, ‘id’, ‘lang’ and ‘see-other-uri’ attribute. |
Close(java.net.URI uri)
Creates an
<close/> with an “see-other-uri” 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.net.URI |
getUri()
The “see-other-uri” attribute.
|
java.lang.String |
getVersion()
Gets the 'version' attribute.
|
java.lang.String |
toString() |
public Close()
Creates an empty <close/>
.
public Close(java.net.URI uri)
Creates an <close/>
with an “see-other-uri” attribute.
uri
- The ‘see-other-uri’ attribute.public Close(Jid to, Jid from, java.lang.String id, java.util.Locale language, java.lang.String version, java.net.URI uri)
Creates an <close/>
element with a ‘to’, ‘from’, ‘id’, ‘lang’ and ‘see-other-uri’ attribute.
to
- The ‘to’ attribute.from
- The ‘from’ attribute.id
- The ‘id’ attribute.language
- The ‘lang’ attribute.version
- The ‘version’ attribute.uri
- The ‘see-other-uri’ attribute.public final java.net.URI getUri()
The “see-other-uri” attribute.
public final java.lang.String toString()
toString
in class java.lang.Object
public 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.