Package tigase.server
Class Message
java.lang.Object
tigase.server.Packet
tigase.server.Message
Created: Dec 31, 2009 8:38:38 PM
- Author:
- Artur Hefczyc
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String[]
static final String[]
static final String[]
static final String[]
Fields inherited from class tigase.server.Packet
CLIENT_XMLNS, elem, ERROR_NS, FROM_ATT, FULL_DEBUG, ID_ATT, PERM_ATT, PRIORITY_ATT, TO_ATT, TYPE_ATT, XMLNS_ATT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
A convenience method to provide XML path asString[]
to error element.static Packet
getMessage
(JID from, JID to, StanzaType type, String body, String subject, String thread, String id) Creates a packet with message stanza.Methods inherited from class tigase.server.Packet
copyElementOnly, debug, elemToString, elemToStringSecure, errorResult, getAttributeStaticStr, getAttributeStaticStr, getCommand, getElemCData, getElemCDataStaticStr, getElemChild, getElemChild, getElemChildrenStaticStr, getElement, getElemName, getErrorCondition, getFrom, getPacketFrom, getPacketTo, getPermissions, getPriority, getProcessorsIds, getServerAuthorisedStanzaFrom, getSkippedProcessorsIds, getStableId, getStanzaFrom, getStanzaId, getStanzaTo, getTo, getType, getXMLNS, initVars, initVars, isCommand, isElement, isRouted, isServiceDisco, isXMLNSStaticStr, notProcessedBy, okResult, okResult, packetInstance, packetInstance, packetInstance, packRouted, processedBy, setPacketFrom, setPacketTo, setPermissions, setPriority, setServerAuthorisedStanzaFrom, setStableId, setXMLNS, swapFromTo, swapFromTo, swapStanzaFromTo, swapStanzaFromTo, toString, toString, toStringFull, toStringSecure, unpackRouted, wasProcessed, wasProcessedBy, wasSkipped
-
Field Details
-
ELEM_NAME
- See Also:
-
MESSAGE_BODY_PATH
-
MESSAGE_SUBJECT_PATH
-
MESSAGE_ERROR_PATH
-
MESSAGE_DELAY_PATH
-
-
Constructor Details
-
Message
- Throws:
TigaseStringprepException
-
Message
-
-
Method Details
-
getMessage
public static Packet getMessage(JID from, JID to, StanzaType type, String body, String subject, String thread, String id) Creates a packet with message stanza.- Parameters:
from
- is aJID
instance with message source address.to
- is aJID
instance with message destination address.type
- is aStanzaType
object with the message type.body
- is aString
object with message body content.subject
- is aString
object with message subject.thread
- is aString
object with message thread.id
- is aString
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 specificallyMessage
instance) with the message stanza.
-
getElNameErrorPath
Description copied from class:Packet
A convenience method to provide XML path asString[]
to error element. This method should be override by all classes extending this class.- Overrides:
getElNameErrorPath
in classPacket
- Returns:
- XML path to error element.
-