org.indy
Class TCPServer

java.lang.Object
  |
  +--org.indy.BaseComponent
        |
        +--org.indy.IndyComponent
              |
              +--org.indy.TCPServer

public class TCPServer
extends IndyComponent

Description of the Class

Author:
owen

Inner classes inherited from class org.indy.IndyComponent
IndyComponent.WorkMode
 
Constructor Summary
TCPServer()
          Constructor for the TCPServer object
 
Method Summary
 void addBinding(TCPServerBinding b)
          DOCUMENT ME!
 void addServerExecuteListener(TCPServerExecuteListener e)
          Sets the executionListener attribute of the IdTCPServer object
 void addTCPServerListener(TCPServerListener l)
          DOCUMENT ME!
protected  void doAfterCommandHandler(PeerThread thread)
          Description of the Method
protected  void doBeforeCommandHandler(PeerThread thread, java.lang.String line)
          Description of the Method
protected  void doConnect(PeerThread thread)
          Description of the Method
protected  void doDisconnect(PeerThread thread)
          Description of the Method
protected  void doException(PeerThread thread, IndyException exception)
          Description of the Method
protected  boolean doExecute(PeerThread thread)
          Description of the Method
protected  void doListenException(ListenerThread thread, IndyException exception)
          Description of the Method
protected  void doNoCommandHandler(PeerThread thread, java.lang.String data)
          Description of the Method
 TCPServerBinding getBinding(int index)
          DOCUMENT ME!
 TCPServerBinding[] getBindings()
          DOCUMENT ME!
 int getDefaultPort()
          Gets the port attribute of the IdTCPServer object
 ServerIOHandler getIOHandler()
          Gets the iOHandler attribute of the IdTCPServer object
 int getListenQueue()
          DOCUMENT ME!
 RFCReply getMaxConnectionReply()
          Gets the maxConnectionReply attribute of the IdTCPServer object
 int getMaxConnections()
          Gets the maxConnections attribute of the IdTCPServer object
 RFCReplies getReplyTexts()
          Gets the replyTexts attribute of the IdTCPServer object
 java.util.List getThreadList()
          Gets the threadList attribute of the IdTCPServer object
 PeerThreadManager getThreadManager()
          Gets the threadMgr attribute of the IdTCPServer object
 boolean isActive()
          DOCUMENT ME!
 void removeBinding(TCPServerBinding b)
          Adds a feature to the CommandHandlerListener attribute of the IdTCPServer object
 void removeServerExecuteListener(TCPServerExecuteListener e)
          DOCUMENT ME!
 void removeTCPServerListener(TCPServerListener l)
          DOCUMENT ME!
 void setActive(boolean makeActive)
          Sets the active attribute of the IdTCPServer object
 void setDefaultPort(int newPort)
          Sets the port attribute of the IdTCPServer object
 void setListenQueue(int listenQueue)
          DOCUMENT ME!
 void setThreadManager(PeerThreadManager threadMgr)
          Sets the threadMgr attribute of the IdTCPServer object
 
Methods inherited from class org.indy.IndyComponent
addComponentListener, doBeginWork, doBeginWork, doEndWork, doStatus, doStatus, doWork, getLocalName, removeComponentListener
 
Methods inherited from class org.indy.BaseComponent
getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPServer

public TCPServer()
Constructor for the TCPServer object
Method Detail

doAfterCommandHandler

protected void doAfterCommandHandler(PeerThread thread)
Description of the Method
Parameters:
thread - Description of the Parameter

doBeforeCommandHandler

protected void doBeforeCommandHandler(PeerThread thread,
                                      java.lang.String line)
Description of the Method
Parameters:
thread - Description of the Parameter
line - Description of the Parameter

doConnect

protected void doConnect(PeerThread thread)
Description of the Method
Parameters:
thread - Description of the Parameter

doDisconnect

protected void doDisconnect(PeerThread thread)
Description of the Method
Parameters:
thread - Description of the Parameter

doException

protected void doException(PeerThread thread,
                           IndyException exception)
Description of the Method
Parameters:
thread - Description of the Parameter
exception - Description of the Parameter

doExecute

protected boolean doExecute(PeerThread thread)
                     throws IndyException
Description of the Method
Parameters:
thread - Description of the Parameter
Returns:
Description of the Return Value
Throws:
IndyException - Description of the Exception

doListenException

protected void doListenException(ListenerThread thread,
                                 IndyException exception)
Description of the Method
Parameters:
thread - Description of the Parameter
exception - Description of the Parameter

doNoCommandHandler

protected void doNoCommandHandler(PeerThread thread,
                                  java.lang.String data)
                           throws TCPServerException
Description of the Method
Parameters:
thread - Description of the Parameter
data - Description of the Parameter
Throws:
TCPServerException - Description of the Exception
IdTCPServerError - Description of the Exception

addBinding

public void addBinding(TCPServerBinding b)
DOCUMENT ME!
Parameters:
b - DOCUMENT ME!

removeBinding

public void removeBinding(TCPServerBinding b)
Adds a feature to the CommandHandlerListener attribute of the IdTCPServer object
Parameters:
l - The feature to be added to the CommandHandlerListener attribute

setActive

public void setActive(boolean makeActive)
               throws IndyIOException
Sets the active attribute of the IdTCPServer object
Parameters:
active - The new active value
Throws:
IndyIOException - Description of the Exception

setDefaultPort

public void setDefaultPort(int newPort)
Sets the port attribute of the IdTCPServer object
Parameters:
newPort - The new port value

addServerExecuteListener

public void addServerExecuteListener(TCPServerExecuteListener e)
Sets the executionListener attribute of the IdTCPServer object
Parameters:
e - The new executionListener value

removeServerExecuteListener

public void removeServerExecuteListener(TCPServerExecuteListener e)
DOCUMENT ME!
Parameters:
e - DOCUMENT ME!

setListenQueue

public void setListenQueue(int listenQueue)
DOCUMENT ME!
Parameters:
listenQueue - DOCUMENT ME!

setThreadManager

public void setThreadManager(PeerThreadManager threadMgr)
Sets the threadMgr attribute of the IdTCPServer object
Parameters:
threadMgr - The new threadMgr value

getBinding

public TCPServerBinding getBinding(int index)
DOCUMENT ME!
Parameters:
index - DOCUMENT ME!
Returns:
DOCUMENT ME!

getBindings

public TCPServerBinding[] getBindings()
DOCUMENT ME!
Returns:
DOCUMENT ME!

getDefaultPort

public int getDefaultPort()
Gets the port attribute of the IdTCPServer object
Returns:
The port value

getIOHandler

public ServerIOHandler getIOHandler()
Gets the iOHandler attribute of the IdTCPServer object
Returns:
The iOHandler value

getListenQueue

public int getListenQueue()
DOCUMENT ME!
Returns:
DOCUMENT ME!

getMaxConnectionReply

public RFCReply getMaxConnectionReply()
Gets the maxConnectionReply attribute of the IdTCPServer object
Returns:
The maxConnectionReply value

getMaxConnections

public int getMaxConnections()
Gets the maxConnections attribute of the IdTCPServer object
Returns:
The maxConnections value

getReplyTexts

public RFCReplies getReplyTexts()
Gets the replyTexts attribute of the IdTCPServer object
Returns:
The replyTexts value

getThreadList

public java.util.List getThreadList()
Gets the threadList attribute of the IdTCPServer object
Returns:
The threadList value

getThreadManager

public PeerThreadManager getThreadManager()
Gets the threadMgr attribute of the IdTCPServer object
Returns:
The threadMgr value

isActive

public boolean isActive()
DOCUMENT ME!
Returns:
DOCUMENT ME!

removeTCPServerListener

public void removeTCPServerListener(TCPServerListener l)
DOCUMENT ME!
Parameters:
l - DOCUMENT ME!

addTCPServerListener

public void addTCPServerListener(TCPServerListener l)
DOCUMENT ME!
Parameters:
l - DOCUMENT ME!


Copyright © 2002-2002 IndyJ. All Rights Reserved.