com.zerjio.JIRC
Class JOINMessage

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

public class JOINMessage
extends IRCMessage

This class represents a JOIN 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
JOINMessage(java.lang.String prefix, java.lang.String params)
          Constructs a JOIN message with a prefix and its parameters.
 
Method Summary
 java.lang.String getChannelName()
          Returns the channel that has been joined.
 java.lang.String whoIsJoining()
          Returns who is joining the channel.
 
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

JOINMessage

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

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

whoIsJoining

public java.lang.String whoIsJoining()
Returns who is joining the channel.

Returns:
The nick who is joining the channels

getChannelName

public java.lang.String getChannelName()
Returns the channel that has been joined.

Returns:
The name of the channel that has been joined