hudson.plugins.im
Class IMMessage

java.lang.Object
  extended by hudson.plugins.im.IMMessage

public class IMMessage
extends java.lang.Object


Constructor Summary
IMMessage(java.lang.String from, java.lang.String to, java.lang.String body)
          Constructor.
IMMessage(java.lang.String from, java.lang.String to, java.lang.String body, boolean authorized)
           
 
Method Summary
 java.lang.String getBody()
          Returns the message body in a plain-text format.
 java.lang.String getFrom()
          Return the sender of the message.
 java.lang.String getTo()
          Return the addressee of the message.
 boolean isAuthorized()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IMMessage

public IMMessage(java.lang.String from,
                 java.lang.String to,
                 java.lang.String body)
Constructor.

Parameters:
from - The sender of the message
to - The receiver of the message - this can e.g. be a 'user' or a 'chat room'
body - The message body

IMMessage

public IMMessage(java.lang.String from,
                 java.lang.String to,
                 java.lang.String body,
                 boolean authorized)
Method Detail

getTo

public java.lang.String getTo()
Return the addressee of the message. The result is in a protocol specific format. May be null.


getFrom

public java.lang.String getFrom()
Return the sender of the message. The result is in a protocol specific format.


getBody

public java.lang.String getBody()
Returns the message body in a plain-text format.


isAuthorized

public boolean isAuthorized()


Copyright © 2010. All Rights Reserved.