com.caucho.xmpp.im
Class ImMessage

java.lang.Object
  extended by com.caucho.xmpp.im.ImMessage
All Implemented Interfaces:
java.io.Serializable

public class ImMessage
extends java.lang.Object
implements java.io.Serializable

IM message - RFC 3921

 element message{xmlns="jabber:client"} {
   attribute from?
   & attribute to?
   & attribute id?
   & attribute type?

   & subject*
   & body*
   & thread?
   & other*
 }

 element body {
   attribute xml:lang?
   & string
 }

 element subject {
   attribute xml:lang?
   & string
 } 

 element thread {
   & string
 }
 

See Also:
Serialized Form

Constructor Summary
ImMessage(java.lang.String body)
           
ImMessage(java.lang.String type, java.lang.String body)
           
ImMessage(java.lang.String to, java.lang.String from, java.lang.String body)
           
ImMessage(java.lang.String to, java.lang.String from, java.lang.String body, java.io.Serializable extra)
           
ImMessage(java.lang.String to, java.lang.String from, java.lang.String body, java.io.Serializable[] extra)
           
ImMessage(java.lang.String to, java.lang.String from, java.lang.String type, Text[] subject, Text[] body, java.lang.String thread, java.io.Serializable[] extra)
           
 
Method Summary
 Text[] getBodys()
           
 java.lang.String getBodyString()
           
 java.io.Serializable[] getExtra()
           
 java.lang.String getFrom()
           
 Text[] getSubjects()
           
 java.lang.String getSubjectString()
           
 java.lang.String getThread()
           
 java.lang.String getTo()
           
 java.lang.String getType()
           
 void setExtra(java.io.Serializable[] extra)
           
 void setExtraList(java.util.ArrayList<java.io.Serializable> extraList)
           
 void setThread(java.lang.String thread)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImMessage

public ImMessage(java.lang.String body)

ImMessage

public ImMessage(java.lang.String type,
                 java.lang.String body)

ImMessage

public ImMessage(java.lang.String to,
                 java.lang.String from,
                 java.lang.String body)

ImMessage

public ImMessage(java.lang.String to,
                 java.lang.String from,
                 java.lang.String body,
                 java.io.Serializable extra)

ImMessage

public ImMessage(java.lang.String to,
                 java.lang.String from,
                 java.lang.String body,
                 java.io.Serializable[] extra)

ImMessage

public ImMessage(java.lang.String to,
                 java.lang.String from,
                 java.lang.String type,
                 Text[] subject,
                 Text[] body,
                 java.lang.String thread,
                 java.io.Serializable[] extra)
Method Detail

getTo

public java.lang.String getTo()

getFrom

public java.lang.String getFrom()

getType

public java.lang.String getType()

getSubjects

public Text[] getSubjects()

getSubjectString

public java.lang.String getSubjectString()

getBodys

public Text[] getBodys()

getBodyString

public java.lang.String getBodyString()

setThread

public void setThread(java.lang.String thread)

getThread

public java.lang.String getThread()

getExtra

public java.io.Serializable[] getExtra()

setExtra

public void setExtra(java.io.Serializable[] extra)

setExtraList

public void setExtraList(java.util.ArrayList<java.io.Serializable> extraList)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object