com.zerjio.JIRC
Class ReplyMessage

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

public class ReplyMessage
extends IRCMessage

A general reply message from the IRC Server.

It is recommended to take a look to the RFC 1459 to know what kinds of messages do exist and their exact formats.


Constructor Summary
ReplyMessage(java.lang.String prefix, java.lang.String command, java.lang.String params)
          Constructs a reply message with a prefix, a command (a 3 digit number) and its parameters.
 
Method Summary
 java.lang.String getComment()
          Returns the comment (explanation of the reply message).
 java.lang.String getName()
          Returns the name of the reply message.
 java.lang.String getReplyingString()
          Returns the replying string (the format of the reply 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

ReplyMessage

public ReplyMessage(java.lang.String prefix,
                    java.lang.String command,
                    java.lang.String params)
Constructs a reply message with a prefix, a command (a 3 digit number) and its parameters.

Parameters:
prefix - The reply message prefix.
command - The reply message command (it must be a 3 digit number, although this condition is not checked).
params - The reply message parameters.
Method Detail

getName

public java.lang.String getName()
Returns the name of the reply message.

Returns:
The name of the reply message.

getReplyingString

public java.lang.String getReplyingString()
Returns the replying string (the format of the reply message). The format can be seen in the RFC 1459.

Returns:
The replying string.

getComment

public java.lang.String getComment()
Returns the comment (explanation of the reply message). The comment can be seen in the RFC 1459.

Returns:
The comment of the reply message.