com.zerjio.JIRC
Class RPL_TOPICMessage
java.lang.Object
com.zerjio.JIRC.IRCMessage
com.zerjio.JIRC.ReplyMessage
com.zerjio.JIRC.RPL_TOPICMessage
- public class RPL_TOPICMessage
- extends ReplyMessage
This class represents a RPL_TOPIC 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 |
RPL_TOPICMessage(java.lang.String prefix,
java.lang.String params)
Constructs a RPL_TOPIC message with a prefix and its parameters.
|
Method Summary |
java.lang.String |
getChannelName()
Returns the channel name of the RPL_TOPIC message. |
java.lang.String |
getTopic()
Returns the topic of the RPL_TOPIC. |
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 |
RPL_TOPICMessage
public RPL_TOPICMessage(java.lang.String prefix,
java.lang.String params)
- Constructs a RPL_TOPIC message with a prefix and its parameters.
The
command
will be 332
.
- Parameters:
prefix
- The RPL_TOPIC message prefix.params
- The RPL_TOPIC message parameters.
getChannelName
public java.lang.String getChannelName()
- Returns the channel name of the RPL_TOPIC message.
- Returns:
- The name of the channel that has the topic.
getTopic
public java.lang.String getTopic()
- Returns the topic of the RPL_TOPIC.
- Returns:
- The topic of the channel.