tigase.server
Class Message
java.lang.Object
tigase.server.Packet
tigase.server.Message
public class Message
- extends Packet
Created: Dec 31, 2009 8:38:38 PM
- Version:
- $Rev: 2067 $
- Author:
- Artur Hefczyc
|
Field Summary |
static java.lang.String |
ELEM_NAME
Field description |
|
Constructor Summary |
Message(tigase.xml.Element elem)
Constructs ... |
Message(tigase.xml.Element elem,
tigase.xmpp.JID stanzaFrom,
tigase.xmpp.JID stanzaTo)
Constructs ... |
|
Method Summary |
static Packet |
getMessage(tigase.xmpp.JID from,
tigase.xmpp.JID to,
StanzaType type,
java.lang.String body,
java.lang.String subject,
java.lang.String thread,
java.lang.String id)
Creates a packet with message stanza. |
| Methods inherited from class tigase.server.Packet |
copyElementOnly, debug, errorResult, getAttribute, getAttribute, getCommand, getElemCData, getElemCData, getElemChildren, getElement, getElemFrom, getElemName, getElemTo, getErrorCondition, getFrom, getPacketFrom, getPacketTo, getPermissions, getPriority, getProcessorsIds, getStanzaFrom, getStanzaId, getStanzaTo, getTo, getType, getXMLNS, initVars, initVars, isCommand, isElement, isRouted, isServiceDisco, isXMLNS, okResult, okResult, packetInstance, packetInstance, packetInstance, packRouted, processedBy, setPacketFrom, setPacketTo, setPermissions, setPriority, swapElemFromTo, swapElemFromTo, swapFromTo, swapFromTo, swapStanzaFromTo, swapStanzaFromTo, toString, toString, toStringSecure, unpackRouted, wasProcessed, wasProcessedBy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ELEM_NAME
public static final java.lang.String ELEM_NAME
- Field description
- See Also:
- Constant Field Values
Message
public Message(tigase.xml.Element elem)
throws tigase.util.TigaseStringprepException
- Constructs ...
- Parameters:
elem -
- Throws:
tigase.util.TigaseStringprepException
Message
public Message(tigase.xml.Element elem,
tigase.xmpp.JID stanzaFrom,
tigase.xmpp.JID stanzaTo)
- Constructs ...
- Parameters:
elem - stanzaFrom - stanzaTo -
getMessage
public static Packet getMessage(tigase.xmpp.JID from,
tigase.xmpp.JID to,
StanzaType type,
java.lang.String body,
java.lang.String subject,
java.lang.String thread,
java.lang.String id)
- Creates a packet with message stanza.
- Parameters:
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.
- Returns:
- a new
Packet instance (more specificaly Message
instance) with the message stanza.
Copyright © 2010 Tigase. All Rights Reserved.