com.zerjio.JIRC
Class NICKMessage

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

public class NICKMessage
extends IRCMessage

This class represents a NICK 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
NICKMessage(java.lang.String prefix, java.lang.String params)
          Constructs a NICK message with a prefix and its parameters.
 
Method Summary
 java.lang.String getNewNick()
          Returns the new nick
 java.lang.String getOldNick()
          Returns the nick that was previously used.
 
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

NICKMessage

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

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

getOldNick

public java.lang.String getOldNick()
Returns the nick that was previously used.

Returns:
The old nick.

getNewNick

public java.lang.String getNewNick()
Returns the new nick

Returns:
The new nick.