com.zerjio.JIRC
Class PRIVMSGMessage

java.lang.Object
  extended bycom.zerjio.JIRC.IRCMessage
      extended bycom.zerjio.JIRC.PRIVMSGMessage

public class PRIVMSGMessage
extends IRCMessage

This class represents a PRIVMSG message that is send over an IRC Connection.

It is recommended to take a look to the RFC 1459 to know what this message means, its exact format and how to handle it.


Constructor Summary
PRIVMSGMessage(java.lang.String prefix, java.lang.String params)
          Constructs a PRIVMSG message with a prefix and its parameters.
 
Method Summary
 java.lang.String getMessage()
          Returns the message sended.
 java.lang.String getRecipientName()
          Returns the recipient name of the message (a channel or nick).
 java.lang.String whoSendsMessage()
          Returns the nick of the one who has sended the message
 
Methods inherited from class com.zerjio.JIRC.IRCMessage
asString, asStringWithoutPrefix, getCommand, getHost, getMustBeDiscarded, getNick, getParams, getPrefix, getUsedCount, getUser, isUsed, markAsUsed, mustBeDiscarded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PRIVMSGMessage

public PRIVMSGMessage(java.lang.String prefix,
                      java.lang.String params)
Constructs a PRIVMSG message with a prefix and its parameters. The command will be PRIVMSG.

Parameters:
prefix - The PRIVMSG message prefix.
params - The PRIVMSG message parameters.
Method Detail

whoSendsMessage

public java.lang.String whoSendsMessage()
Returns the nick of the one who has sended the message

Returns:
The nick that sends the message

getMessage

public java.lang.String getMessage()
Returns the message sended.

Returns:
The message sended.

getRecipientName

public java.lang.String getRecipientName()
Returns the recipient name of the message (a channel or nick).

Returns:
The name of the recipient of the message.