irssibot.protocol
Class JoinMessage

java.lang.Object
  |
  +--irssibot.protocol.IrcMessage
        |
        +--irssibot.protocol.JoinMessage

public class JoinMessage
extends IrcMessage

Represents an IRC protocol JOIN message.

The JOIN message format is:

 :nick!ident@host JOIN #channel

 OR:

 :nick!ident@host JOIN :#channel
 

Version:
$Name: $ $Revision: 1.1 $
Author:
Matti Dahlbom
See Also:

Field Summary
private  java.lang.String joinedChannelName
          Joined channels name
private  Host joinerHost
          Joiners host
 
Fields inherited from class irssibot.protocol.IrcMessage
arguments, command, prefix, raw, trailing
 
Constructor Summary
protected JoinMessage(java.lang.String prefix, java.lang.String command, java.lang.String[] arguments, java.lang.String trailing, java.lang.String raw)
          Constructs with all the parts already parsed.
 
Method Summary
 java.lang.String getJoinedChannelName()
          Returns the joined channels name.
 Host getJoinerHost()
          Returns the joiners host.
 
Methods inherited from class irssibot.protocol.IrcMessage
getArguments, getCommand, getPrefix, getTrailing, parse, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

joinerHost

private Host joinerHost
Joiners host


joinedChannelName

private java.lang.String joinedChannelName
Joined channels name

Constructor Detail

JoinMessage

protected JoinMessage(java.lang.String prefix,
                      java.lang.String command,
                      java.lang.String[] arguments,
                      java.lang.String trailing,
                      java.lang.String raw)
Constructs with all the parts already parsed. Sets JoinMessage specific data.

Parameters:
prefix - prefix part
command - command part
arguments - arguments
trailing - trailing part
raw - the raw message
Throws:
java.lang.IllegalArgumentException - if message format is invalid
Method Detail

getJoinerHost

public Host getJoinerHost()
Returns the joiners host.


getJoinedChannelName

public java.lang.String getJoinedChannelName()
Returns the joined channels name.



IrssiBot (c) 2000-2002 Matti Dahlbom