public abstract class Stanza extends XMPPPacket
| Modifier and Type | Class and Description |
|---|---|
class |
Stanza.StanzaError |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CLOSE_BRACKET |
protected static String |
EQUALS |
protected Stanza.StanzaError |
error |
protected JID |
from |
protected static String |
FROM |
protected String |
id |
protected static String |
ID |
protected Language |
lang |
protected static String |
OPEN_BRACKET |
protected static String |
SINGLE_QUOTE |
protected static String |
SLASH |
protected JID |
to |
protected static String |
TO |
protected static String |
TYPE |
protected static String |
XML_LANG |
protected String |
xmlns |
protected static String |
XMLNS |
| Constructor and Description |
|---|
Stanza() |
Stanza(Element element) |
Stanza(String id) |
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
getCreateTime() |
Stanza.StanzaError |
getError() |
JID |
getFrom() |
String |
getId()
Returns packet Id and returns null if packet doesn't have id.
|
Language |
getLang() |
JID |
getTo() |
String |
getXmlns() |
boolean |
isMessage() |
boolean |
isStanza() |
void |
setCreateTime(Timestamp createTime) |
void |
setError(Stanza.StanzaError error) |
void |
setFrom(JID from) |
void |
setId(String id) |
void |
setLang(Language lang) |
void |
setTo(JID to) |
void |
setXmlns(String xmlns) |
appendXml, getBytes, getBytes, writeTo, writeTo, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitxmlprotected static final String ID
protected static final String TO
protected static final String FROM
protected static final String XML_LANG
protected static final String TYPE
protected static final String CLOSE_BRACKET
protected static final String OPEN_BRACKET
protected static final String EQUALS
protected static final String SINGLE_QUOTE
protected static final String SLASH
protected static final String XMLNS
protected String id
protected JID from
protected JID to
protected Language lang
protected String xmlns
protected Stanza.StanzaError error
public Stanza()
public Stanza(String id)
public Stanza(Element element) throws InvalidJabberId
InvalidJabberIdpublic boolean isStanza()
public boolean isMessage()
public String getId()
PacketgetId in interface PacketgetId in class XMPPPacketpublic void setId(String id)
public JID getFrom()
public void setFrom(JID from)
public JID getTo()
public void setTo(JID to)
public Language getLang()
public void setLang(Language lang)
public String getXmlns()
public void setXmlns(String xmlns)
public Stanza.StanzaError getError()
public void setError(Stanza.StanzaError error)
public Timestamp getCreateTime()
public void setCreateTime(Timestamp createTime)
Copyright © 2019. All rights reserved.