org.zerofun.maven.im.beans
Class AIMMessageBean

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

public class AIMMessageBean
extends java.lang.Object

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

Version:
$Revision: 1.3 $
Author:
Sam Mulube

Constructor Summary
AIMMessageBean()
           
 
Method Summary
 void execute()
          The main method of the bean.
 java.lang.String getFrom()
          Gets the username of the AIM user messages will be sent from.
 java.lang.String getMessage()
          Gets the message which will be sent to all recipients.
 java.lang.String getPassword()
          Gets the password used to authenticate the specified username.
 java.lang.String getTo()
          Gets the list of recipients to which the message should be sent.
 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 recipients.
 void setPassword(java.lang.String password)
          Sets the password which will authenticate the specified username to the AIM server.
 void setTo(java.lang.String to)
          Sets the list of recipients to which will be sent messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AIMMessageBean

public AIMMessageBean()
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 AIM recipients.

Throws:
java.lang.Exception

getFrom

public java.lang.String getFrom()
Gets the username of the AIM user messages will be sent from.

Returns:
the AIM username 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 used to authenticate the specified username.

Returns:
the password String

getTo

public java.lang.String getTo()
Gets the list of recipients to which the message should be sent. This may be a single user, 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 username String to set

setMessage

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

Parameters:
message - the message string to set

setPassword

public void setPassword(java.lang.String password)
Sets the password which will authenticate the specified username to the AIM server.

Parameters:
password - the password String to set

setTo

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

Parameters:
to - the to String to set


Copyright © 2003 Zerofun Software. All Rights Reserved.