|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The server class.
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 l)
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 source)
Set the default output source this server should use if the destination source is undefined. |
Method Detail |
public void say(java.lang.String destination, java.lang.String str)
destination
- message destination.str
- message itself.public void execute(java.lang.String str)
str
- the command to execute.public void sendStatusMessage(java.lang.String str)
str
- string to send to the status.public java.lang.String getNick()
public java.lang.String getUserName()
public void connect()
public void disconnect()
public boolean isConnected()
public java.util.Enumeration getSources()
public void enumerateSourcesAsCreated(ServerListener l)
l
- listener to call.public void setDefaultSource(Source source)
source
- default source.public void addServerListener(ServerListener l)
l
- listener to add.public void removeServerListener(ServerListener l)
l
- listener to remove.public void leave()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |