|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.berlios.suzy.irc.IrcCommandEvent
public class IrcCommandEvent
This is the Event that a command from irc will be passed to the appropriate plugin with.
It contains a reference to the IrcSender
which is responsible for answering, the
target the message came from, the command itself and the message after the command if any.
Constructor Summary | |
---|---|
IrcCommandEvent(IrcSender source,
IrcTarget target,
java.lang.String prefix,
java.lang.String command,
java.lang.String message)
Constructs a new IrcCommandEvent with the given data. |
Method Summary | |
---|---|
java.lang.String |
getCommand()
returns the command that was issued |
java.lang.String |
getMessageContent()
returns the message following the command, stripped of leading and trailing spaces |
java.lang.String |
getPrefix()
|
IrcSender |
getSource()
returns the source for this event |
IrcTarget |
getTarget()
returns the target that caused this event and probably expects an answer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IrcCommandEvent(IrcSender source, IrcTarget target, java.lang.String prefix, java.lang.String command, java.lang.String message)
source
- the source where the event occured (typically an IrcClient)target
- contains information about who caused the eventcommand
- the command that was issuedmessage
- the message following the command, stripped of leading and trailing spacesMethod Detail |
---|
public IrcSender getSource()
public IrcTarget getTarget()
public java.lang.String getCommand()
public java.lang.String getMessageContent()
public java.lang.String getPrefix()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |