|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.ircbot.v2.IRCConnection
public class IRCConnection
IRC specific implementation of an IMConnection.
| Constructor Summary | |
|---|---|
IRCConnection(IrcPublisher.DescriptorImpl descriptor,
hudson.plugins.im.AuthenticationHolder authentication)
|
|
| Method Summary | |
|---|---|
void |
addConnectionListener(hudson.plugins.im.IMConnectionListener listener)
|
void |
channelJoined(java.lang.String channelName)
Is called when the ircbot joins a channel. |
void |
channelParted(java.lang.String channelName)
Is called when the ircbot is disconnected (leaves or is kicked) from a channel. |
void |
close()
|
boolean |
connect()
|
void |
inviteReceived(java.lang.String channelName,
java.lang.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,
java.lang.String text)
|
void |
send(java.lang.String target,
java.lang.String text)
|
void |
setPresence(hudson.plugins.im.IMPresence presence,
java.lang.String statusMessage)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IRCConnection(IrcPublisher.DescriptorImpl descriptor,
hudson.plugins.im.AuthenticationHolder authentication)
| Method Detail |
|---|
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(java.lang.String channelName)
PircListener.JoinListener
channelJoined in interface PircListener.JoinListener
public void inviteReceived(java.lang.String channelName,
java.lang.String inviter)
PircListener.InviteListener
inviteReceived in interface PircListener.InviteListenerpublic void channelParted(java.lang.String channelName)
PircListener.PartListener
channelParted 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.IMConnection
public void send(hudson.plugins.im.IMMessageTarget target,
java.lang.String text)
throws hudson.plugins.im.IMException
send in interface hudson.plugins.im.IMConnectionhudson.plugins.im.IMException
public void send(java.lang.String target,
java.lang.String text)
throws hudson.plugins.im.IMException
hudson.plugins.im.IMException
public void setPresence(hudson.plugins.im.IMPresence presence,
java.lang.String statusMessage)
throws hudson.plugins.im.IMException
setPresence in interface hudson.plugins.im.IMConnectionhudson.plugins.im.IMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||