Package rocks.xmpp.websocket.model
Class Close
- java.lang.Object
-
- rocks.xmpp.websocket.model.Close
-
- All Implemented Interfaces:
LanguageElement
,SessionClose
,StreamElement
public final class Close extends Object implements SessionClose
The implementation of the<close/>
element in theurn:ietf:params:xml:ns:xmpp-framing
namespace.- Since:
- 0.7.0
-
-
Constructor Summary
Constructors Constructor Description Close()
Creates an empty<close/>
.Close(URI uri)
Creates an<close/>
with an "see-other-uri" attribute.Close(Jid to, Jid from, String id, Locale language, String version, URI uri)
Creates an<close/>
element with a 'to', 'from', 'id', 'lang' and 'see-other-uri' 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.URI
getUri()
The "see-other-uri" attribute.String
getVersion()
Gets the 'version' attribute.String
toString()
-
-
-
Constructor Detail
-
Close
public Close()
Creates an empty<close/>
.
-
Close
public Close(URI uri)
Creates an<close/>
with an "see-other-uri" attribute.- Parameters:
uri
- The 'see-other-uri' attribute.
-
Close
public Close(Jid to, Jid from, String id, Locale language, String version, URI uri)
Creates an<close/>
element with a 'to', 'from', 'id', 'lang' and 'see-other-uri' attribute.- Parameters:
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.
-
-
Method Detail
-
getUri
public final URI getUri()
The "see-other-uri" attribute.- Returns:
- The URI.
- See Also:
- 3.6.1. see-other-uri
-
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.
-
-