public class IRCConnection extends Object implements hudson.plugins.im.IMConnection, PircListener.JoinListener, PircListener.InviteListener, PircListener.PartListener
IMConnection.| Constructor and Description |
|---|
IRCConnection(IrcPublisher.DescriptorImpl descriptor,
hudson.plugins.im.AuthenticationHolder authentication) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(hudson.plugins.im.IMConnectionListener listener) |
void |
channelJoined(String channelName)
Is called when the ircbot joins a channel.
|
void |
channelParted(String channelName)
Is called when the ircbot is disconnected (leaves or is kicked) from a channel.
|
void |
close() |
boolean |
connect() |
void |
inviteReceived(String channelName,
String inviter)
Is called when the ircbot is invited to a channel.
|
boolean |
isConnected() |
void |
removeConnectionListener(hudson.plugins.im.IMConnectionListener listener) |
void |
send(hudson.plugins.im.IMMessageTarget target,
String text) |
void |
send(String target,
String text) |
void |
setPresence(hudson.plugins.im.IMPresence presence,
String statusMessage) |
public IRCConnection(IrcPublisher.DescriptorImpl descriptor, hudson.plugins.im.AuthenticationHolder authentication)
public void close()
close in interface hudson.plugins.im.IMConnectionpublic boolean isConnected()
isConnected in interface hudson.plugins.im.IMConnectionpublic boolean connect()
connect in interface hudson.plugins.im.IMConnectionpublic void channelJoined(String channelName)
PircListener.JoinListenerchannelJoined in interface PircListener.JoinListenerpublic void inviteReceived(String channelName, String inviter)
PircListener.InviteListenerinviteReceived in interface PircListener.InviteListenerpublic void channelParted(String channelName)
PircListener.PartListenerchannelParted in interface PircListener.PartListenerpublic void addConnectionListener(hudson.plugins.im.IMConnectionListener listener)
addConnectionListener in interface hudson.plugins.im.IMConnectionpublic void removeConnectionListener(hudson.plugins.im.IMConnectionListener listener)
removeConnectionListener in interface hudson.plugins.im.IMConnectionpublic void send(hudson.plugins.im.IMMessageTarget target,
String text)
throws hudson.plugins.im.IMException
send in interface hudson.plugins.im.IMConnectionhudson.plugins.im.IMExceptionpublic void send(String target, String text) throws hudson.plugins.im.IMException
hudson.plugins.im.IMExceptionpublic void setPresence(hudson.plugins.im.IMPresence presence,
String statusMessage)
throws hudson.plugins.im.IMException
setPresence in interface hudson.plugins.im.IMConnectionhudson.plugins.im.IMExceptionCopyright © 2004-2014 Hudson. All Rights Reserved.