irc.ident.prv
Class IdentServer

java.lang.Object
  |
  +--irc.IRCObject
        |
        +--irc.ident.prv.IdentServer
All Implemented Interfaces:
java.lang.Runnable

public class IdentServer
extends IRCObject
implements java.lang.Runnable

The built-in pjirc ident server.


Field Summary
 
Fields inherited from class irc.IRCObject
_ircConfiguration
 
Constructor Summary
IdentServer(IRCConfiguration config)
          Create a new IdentServer.
 
Method Summary
 void addIdentListener(IdentListener lis)
          Add a listener.
 void registerLocalConnection(int localPort, java.lang.String system, java.lang.String id)
          Register a new local connection.
 void removeIdentListener(IdentListener lis)
          Remove a listener.
 void resetDefaultUser()
          Erase the default user configuration.
 void run()
           
 void setDefaultUser(java.lang.String system, java.lang.String id)
          Set the default user configuration.
 void start()
          Start the ident server.
 void start(int port)
          Start the ident server on the given port.
 void stop()
          Stop the execution of the ident server.
 void unregisterLocalConnection(int localPort)
          Unregister a local connection.
 
Methods inherited from class irc.IRCObject
getColor, getIRCConfiguration, getText, getText, getText, getText, getTimeStamp, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentServer

public IdentServer(IRCConfiguration config)
Create a new IdentServer.

Parameters:
config - global irc configuration.
Method Detail

start

public void start()
           throws java.lang.Exception
Start the ident server.

java.lang.Exception

resetDefaultUser

public void resetDefaultUser()
Erase the default user configuration.


setDefaultUser

public void setDefaultUser(java.lang.String system,
                           java.lang.String id)
Set the default user configuration.

Parameters:
system - user system.
id - user id.

start

public void start(int port)
           throws java.lang.Exception
Start the ident server on the given port.

java.lang.Exception

stop

public void stop()
Stop the execution of the ident server.


registerLocalConnection

public void registerLocalConnection(int localPort,
                                    java.lang.String system,
                                    java.lang.String id)
Register a new local connection.

Parameters:
system - user system on this connection.
id - user id on this connection.

unregisterLocalConnection

public void unregisterLocalConnection(int localPort)
Unregister a local connection.


addIdentListener

public void addIdentListener(IdentListener lis)
Add a listener.

Parameters:
lis - listener to add.

removeIdentListener

public void removeIdentListener(IdentListener lis)
Remove a listener.

Parameters:
lis - listener to remove.

run

public void run()
Specified by:
run in interface java.lang.Runnable