|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.zerofun.maven.im.beans.JabberMessageBean
This bean provides the actual functionality for sending a message to XMPP (Jabber) clients. It's functionality is invoked by the corresponding JabberMessageTag class.
Constructor Summary | |
JabberMessageBean()
|
Method Summary | |
void |
execute()
The main method of the bean. |
java.lang.String |
getFrom()
Gets the username of the sender of the message. |
java.lang.String |
getHost()
Gets the host/server to which the specified user can connect to. |
java.lang.String |
getMessage()
Gets the message which will be sent to all recipients. |
java.lang.String |
getPassword()
Gets the password which corresponds to the specified username, which will be used to log the user into the server. |
int |
getPort()
Gets the port to which the plugin should attempt to connect on the specified server. |
int |
getSecurePort()
Gets the port to which the plugin should attempt to connect if it is trying to connect using XMPP secure. |
java.lang.String |
getTo()
Gets the complete string containing all recipients of the message. |
boolean |
isSecure()
Gets a boolean value indicating whether or not secure XMPP should be used to send the message. |
void |
setFrom(java.lang.String from)
Sets the username which identifies the user the messages will be sent from. |
void |
setHost(java.lang.String host)
Sets the server the plugin will attempt to connect to, to send messages. |
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 be used to authenticate the specified user when the plugin connects to the server. |
void |
setPort(int port)
Sets the port the plugin will attempt to use when connecting to the XMPP server. |
void |
setSecure(boolean secure)
Sets the boolean value which indicates whether or not the messages should be sent using XMPP Secure or not. |
void |
setSecurePort(int securePort)
Sets the port the plugin will attempt to use when connecting to the XMPP server using an encrypted connection. |
void |
setTo(java.lang.String to)
Sets the string containing all of the intended recipients of the message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JabberMessageBean()
Method Detail |
public void execute() throws java.lang.Exception
java.lang.Exception
public java.lang.String getFrom()
public java.lang.String getHost()
public java.lang.String getMessage()
public java.lang.String getPassword()
public int getPort()
public int getSecurePort()
public java.lang.String getTo()
public boolean isSecure()
public void setFrom(java.lang.String from)
from
- the username String to setpublic void setHost(java.lang.String host)
host
- the server String to setpublic void setMessage(java.lang.String message)
message
- the message String to setpublic void setPassword(java.lang.String password)
password
- the password String to setpublic void setPort(int port)
port
- the port number int to setpublic void setSecure(boolean secure)
secure
- the secure boolean value to setpublic void setSecurePort(int securePort)
securePort
- the secure port number int to setpublic void setTo(java.lang.String to)
to
- the to String to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |