jabber.conversation
Class Message

java.lang.Object
  extended by jabber.conversation.Message

public class Message
extends java.lang.Object


Field Summary
 java.lang.String body
           
 java.lang.String from
           
 java.lang.String subject
           
 
Constructor Summary
Message(Node _node)
           
Message(java.lang.String _subject, java.lang.String _body)
           
Message(java.lang.String _subject, java.lang.String _body, java.lang.String _from)
           
 
Method Summary
 void addError(java.lang.String error_text)
           
 java.lang.String getText()
          Returns the subject and the body, separated by a newline
 java.lang.String getTextAsXML()
          returns the subject and the body in "xml" example: >subject<pollution>/subject< >body<pollution in frankfurt today!
 java.lang.String getTextNick()
          Returns the subject and the body, separated by a newline (with the nick of the author)
static java.lang.String setLink(java.lang.String body)
          Find links in the body
static java.lang.String setSmiles(java.lang.String body)
          Find smiles and replace them with codes (1 smile for message supported)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subject

public java.lang.String subject

body

public java.lang.String body

from

public java.lang.String from
Constructor Detail

Message

public Message(java.lang.String _subject,
               java.lang.String _body)

Message

public Message(java.lang.String _subject,
               java.lang.String _body,
               java.lang.String _from)

Message

public Message(Node _node)
Method Detail

getText

public java.lang.String getText()
Returns the subject and the body, separated by a newline

Returns:
String

getTextNick

public java.lang.String getTextNick()
Returns the subject and the body, separated by a newline (with the nick of the author)

Returns:
String

getTextAsXML

public java.lang.String getTextAsXML()
returns the subject and the body in "xml" example: >subject<pollution>/subject< >body<pollution in frankfurt today!>/body<


setSmiles

public static java.lang.String setSmiles(java.lang.String body)
Find smiles and replace them with codes (1 smile for message supported)


setLink

public static java.lang.String setLink(java.lang.String body)
Find links in the body


addError

public void addError(java.lang.String error_text)