|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--irc.NullServer
The null-server class.
| Constructor Summary | |
NullServer()
Create a new NullServer. |
|
| Method Summary | |
void |
addServerListener(ServerListener l)
Add a server listener. |
void |
connect()
Try to connect to the server, using default configuration. |
void |
disconnect()
Disconnect from the server. |
void |
enumerateSourcesAsCreated(ServerListener lis)
Enumerate all sources, as if they were created and notified to the given listener. |
void |
execute(java.lang.String str)
Execute the given command on the remote server. |
java.lang.String |
getNick()
Get the nickname on this server. |
java.util.Enumeration |
getSources()
Get an enumeration of all the sources associated with this server. |
java.lang.String |
getUserName()
Get the username on this server. |
boolean |
isConnected()
Test whether the server is connected. |
void |
leave()
Leave all sources, then leave the server. |
void |
removeServerListener(ServerListener l)
Remove a listener. |
void |
say(java.lang.String destination,
java.lang.String str)
Say the specified string. |
void |
sendStatusMessage(java.lang.String str)
Send the given message to the server's status. |
void |
setDefaultSource(Source def)
Set the default output source this server should use if the destination source is undefined. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NullServer()
| Method Detail |
public void addServerListener(ServerListener l)
Server
addServerListener in interface Serverl - listener to add.public void removeServerListener(ServerListener l)
Server
removeServerListener in interface Serverl - listener to remove.
public void say(java.lang.String destination,
java.lang.String str)
Server
say in interface Serverdestination - message destination.str - message itself.public void execute(java.lang.String str)
Server
execute in interface Serverstr - the command to execute.public void sendStatusMessage(java.lang.String str)
Server
sendStatusMessage in interface Serverstr - string to send to the status.public java.lang.String getNick()
Server
getNick in interface Serverpublic java.lang.String getUserName()
Server
getUserName in interface Serverpublic void connect()
Server
connect in interface Serverpublic void disconnect()
Server
disconnect in interface Serverpublic boolean isConnected()
Server
isConnected in interface Serverpublic void setDefaultSource(Source def)
Server
setDefaultSource in interface Serverdef - default source.public void leave()
Server
leave in interface Serverpublic void enumerateSourcesAsCreated(ServerListener lis)
Server
enumerateSourcesAsCreated in interface Serverlis - listener to call.public java.util.Enumeration getSources()
Server
getSources in interface Server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||