com.zerjio.JIRC
Class QUITMessage

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

public class QUITMessage
extends IRCMessage

This class represents a QUIT 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
QUITMessage(java.lang.String prefix, java.lang.String params)
          Constructs a QUIT message with a prefix and its parameters.
 
Method Summary
 java.lang.String getQuitMessage()
          Returns the quit message.
 java.lang.String whoIsQuitting()
          The nick of the one who is leaving the network
 
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

QUITMessage

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

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

whoIsQuitting

public java.lang.String whoIsQuitting()
The nick of the one who is leaving the network

Returns:
The nick who is quitting.

getQuitMessage

public java.lang.String getQuitMessage()
Returns the quit message.

Returns:
The quit message.