com.leafdigital.irc.api
Class ServerIRCMsg

java.lang.Object
  extended by leafchat.core.api.Msg
      extended by com.leafdigital.irc.api.IRCMsg
          extended by com.leafdigital.irc.api.ServerIRCMsg
Direct Known Subclasses:
NumericIRCMsg, ServerNoticeIRCMsg

public class ServerIRCMsg
extends IRCMsg

IRC message that has a server as prefix


Field Summary
static MessageInfo info
          Scripting event information.
 
Fields inherited from class leafchat.core.api.Msg
PRIORITY_AFTERNORMAL, PRIORITY_BEFORENORMAL, PRIORITY_EARLY, PRIORITY_FIRST, PRIORITY_LAST, PRIORITY_LATE, PRIORITY_NORMAL
 
Constructor Summary
ServerIRCMsg(java.lang.String sourceServer, java.lang.String target)
           
 
Method Summary
 int getResponseID()
           
 java.lang.String getSourceServer()
           
 java.lang.String getTarget()
           
 void setResponseID(int responseID)
          Used after construction to set the ID of the response (if applicable)
 java.lang.String toString()
           
 
Methods inherited from class com.leafdigital.irc.api.IRCMsg
constructBytes, constructBytes, convertEncoding, convertISO, getCommand, getCommandBytes, getLine, getLineISO, getParamISO, getParams, getPrefix, getPrefixBytes, getServer, hasEncoding, includesPostfix, init, init, isParamInteger, setEncoding, splitBytes
 
Methods inherited from class leafchat.core.api.Msg
isHandled, isStopped, markHandled, markStopped, sequenceBefore, setSequence, setSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

info

public static MessageInfo info
Scripting event information.

Constructor Detail

ServerIRCMsg

public ServerIRCMsg(java.lang.String sourceServer,
                    java.lang.String target)
Parameters:
sourceServer - Server that sent the message
target - Target of notice
Method Detail

setResponseID

public void setResponseID(int responseID)
Used after construction to set the ID of the response (if applicable)

Parameters:
responseID - ID of response

getResponseID

public int getResponseID()
Returns:
Response ID or Server.UNTRACKED_REQUEST

getSourceServer

public java.lang.String getSourceServer()
Returns:
Server that sent the message

getTarget

public java.lang.String getTarget()
Returns:
Target of notice

toString

public java.lang.String toString()
Overrides:
toString in class IRCMsg


Copyright © 2011 Samuel Marshall. All rights reserved.