org.zerofun.maven.im.beans
Class MSNMessageBean

java.lang.Object
  |
  +--org.zerofun.maven.im.beans.MSNMessageBean

public class MSNMessageBean
extends java.lang.Object

This bean provides the actual functionality for sending a message to MSN clients. It's functionality is invoked by the corresponding MSNMessageTag class.

Version:
$Revision: 1.3 $
Author:
Sam Mulube

Constructor Summary
MSNMessageBean()
           
 
Method Summary
 void execute()
          The main method of the bean.
 java.lang.String getFrom()
          Gets the MSN username from which messages should be sent.
 java.lang.String getMessage()
          Gets the message which will be sent to all recipients.
 java.lang.String getPassword()
          Gets the password which will be used to authenticate the specified user to the MSN server.
 java.lang.String getTo()
          Gets the complete list of recipients, which could be a single name, or a comma separated list of recipients.
 void setFrom(java.lang.String from)
          Sets the username from which messages will be sent.
 void setMessage(java.lang.String message)
          Sets the message which will be sent to all users.
 void setPassword(java.lang.String password)
          Sets the password which will be used to authenticate the specified user with the MSN server.
 void setTo(java.lang.String to)
          Sets the list of recipients to which messages should be sent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSNMessageBean

public MSNMessageBean()
Method Detail

execute

public void execute()
             throws java.lang.Exception
The main method of the bean. This performs the function of creating and sending the message to all MSN recipients.

Throws:
java.lang.Exception

getFrom

public java.lang.String getFrom()
Gets the MSN username from which messages should be sent.

Returns:
the from String

getMessage

public java.lang.String getMessage()
Gets the message which will be sent to all recipients.

Returns:
the message String

getPassword

public java.lang.String getPassword()
Gets the password which will be used to authenticate the specified user to the MSN server.

Returns:
the password String

getTo

public java.lang.String getTo()
Gets the complete list of recipients, which could be a single name, or a comma separated list of recipients.

Returns:
the to String

setFrom

public void setFrom(java.lang.String from)
Sets the username from which messages will be sent.

Parameters:
from - the from String to set

setMessage

public void setMessage(java.lang.String message)
Sets the message which will be sent to all users.

Parameters:
message - the message String to set

setPassword

public void setPassword(java.lang.String password)
Sets the password which will be used to authenticate the specified user with the MSN server.

Parameters:
password - the password String to set

setTo

public void setTo(java.lang.String to)
Sets the list of recipients to which messages should be sent.

Parameters:
to - the to String to set


Copyright © 2003 Zerofun Software. All Rights Reserved.