|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.server.Packet
tigase.server.Message
public class Message
Created: Dec 31, 2009 8:38:38 PM
| Field Summary | |
|---|---|
static String |
ELEM_NAME
Field description |
static String[] |
MESSAGE_BODY_PATH
Field description |
static String[] |
MESSAGE_DELAY_PATH
Field description |
static String[] |
MESSAGE_ERROR_PATH
Field description |
static String[] |
MESSAGE_SUBJECT_PATH
Field description |
| Fields inherited from class tigase.server.Packet |
|---|
CLIENT_XMLNS, elem, FROM_ATT, FULL_DEBUG, ID_ATT, PERM_ATT, PRIORITY_ATT, TO_ATT, TYPE_ATT, XMLNS_ATT |
| Constructor Summary | |
|---|---|
Message(tigase.xml.Element elem)
Constructs ... |
|
Message(tigase.xml.Element elem,
tigase.xmpp.JID stanzaFrom,
tigase.xmpp.JID stanzaTo)
Constructs ... |
|
| Method Summary | |
|---|---|
protected String[] |
getElNameErrorPath()
Method description |
static Packet |
getMessage(tigase.xmpp.JID from,
tigase.xmpp.JID to,
StanzaType type,
String body,
String subject,
String thread,
String id)
Creates a packet with message stanza. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ELEM_NAME
public static final String[] MESSAGE_BODY_PATH
public static final String[] MESSAGE_SUBJECT_PATH
public static final String[] MESSAGE_ERROR_PATH
public static final String[] MESSAGE_DELAY_PATH
| Constructor Detail |
|---|
public Message(tigase.xml.Element elem)
throws tigase.util.TigaseStringprepException
elem -
tigase.util.TigaseStringprepException
public Message(tigase.xml.Element elem,
tigase.xmpp.JID stanzaFrom,
tigase.xmpp.JID stanzaTo)
elem - stanzaFrom - stanzaTo - | Method Detail |
|---|
public static Packet getMessage(tigase.xmpp.JID from,
tigase.xmpp.JID to,
StanzaType type,
String body,
String subject,
String thread,
String id)
from - is a JID instance with message source address.to - is a JID instance with message destination address.type - is a StanzaType object with the message type.body - is a String object with message body content.subject - is a String object with message subject.thread - is a String object with message thread.id - is a String object with packet id value. Normally we
do not set packet IDs for messages but in some cases this might be
useful.
Packet instance (more specificaly
Message instance) with the message stanza.protected String[] getElNameErrorPath()
getElNameErrorPath in class Packet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||