|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--irc.IRCObject | +--irc.BasicCTCPFilter
Basic CTCPFilter, used in sources.
Field Summary |
Fields inherited from class irc.IRCObject |
_ircConfiguration |
Constructor Summary | |
BasicCTCPFilter(IRCConfiguration config,
ServerManager mgr)
Create a new BasicCTCPFilter, using the given IRCConfiguration. |
Method Summary | |
void |
action(Server s,
java.lang.String destination,
java.lang.String msg)
Send an action on the given destination. |
void |
addDCCListener(DCCListener lis)
Add a DCCListener. |
void |
chat(Server s,
java.lang.String nick)
Send a DCCChat request on the given nick. |
void |
CTCPReply(java.lang.String nick,
Source source,
java.lang.String msg)
Notify this Filter the source has received a CTCP reply. |
void |
genericSend(Server s,
java.lang.String nick,
java.lang.String message)
Send a generic CTCP message to the given nick. |
void |
perform(java.lang.String nick,
Source source,
java.lang.String msg)
Notify this filter the given source has received a CTCP message that should be processed. |
void |
ping(Server s,
java.lang.String nick)
Send a PING request on the given nick. |
void |
removeDCCListener(DCCListener lis)
Remote a DCCListener. |
void |
sendFile(Server s,
java.lang.String nick,
java.lang.String fname)
Send a DCC file send request on the given nick. |
Methods inherited from class irc.IRCObject |
getColor, getIRCConfiguration, getText, getText, getText, getText, getTimeStamp, release |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicCTCPFilter(IRCConfiguration config, ServerManager mgr)
config
- IRCConfiguration to use.mgr
- ServerManager to notify upon server creation.Method Detail |
public void addDCCListener(DCCListener lis)
lis
- listener to add.public void removeDCCListener(DCCListener lis)
lis
- listener to remove.public void action(Server s, java.lang.String destination, java.lang.String msg)
CTCPFilter
action
in interface CTCPFilter
s
- the server where to send the action.destination
- the destination, channel name or nick name.msg
- the message to send.public void ping(Server s, java.lang.String nick)
CTCPFilter
ping
in interface CTCPFilter
s
- the server.nick
- the nick.public void chat(Server s, java.lang.String nick)
CTCPFilter
chat
in interface CTCPFilter
s
- the server.nick
- the nick.public void sendFile(Server s, java.lang.String nick, java.lang.String fname)
CTCPFilter
sendFile
in interface CTCPFilter
s
- the server.nick
- the nick.fname
- the file to send.public void genericSend(Server s, java.lang.String nick, java.lang.String message)
CTCPFilter
genericSend
in interface CTCPFilter
s
- the server.nick
- the nick.message
- the message to send.public void perform(java.lang.String nick, Source source, java.lang.String msg)
CTCPFilter
perform
in interface CTCPFilter
nick
- the sender nickname.source
- the source.msg
- the message to be processed.public void CTCPReply(java.lang.String nick, Source source, java.lang.String msg)
CTCPFilter
CTCPReply
in interface CTCPFilter
nick
- the replier nick.source
- the source.msg
- the reply message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |