org.apache.axis2.transport.tcp
Class TCPServer

java.lang.Object
  extended byorg.apache.axis2.transport.tcp.TCPServer
All Implemented Interfaces:
Runnable, TransportListener

public class TCPServer
extends Object
implements Runnable, TransportListener

Class TCPServer


Field Summary
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
TCPServer()
           
TCPServer(int port, ConfigurationContext configContext)
           
TCPServer(int port, String dir)
           
 
Method Summary
 ConfigurationContext getConfigurationContext()
           
 EndpointReference getEPRForService(String serviceName, String ip)
          I fthe hostAddress parameter is present in axis2.xml then the EPR will be created by taking the hostAddres into account (non-Javadoc)
 EndpointReference[] getEPRsForService(String serviceName, String ip)
           
 void init(ConfigurationContext axisConf, TransportInDescription transprtIn)
           
static void main(String[] args)
           
 ServerSocket openSocket(int port)
          Controls the number of server sockets kept open.
 void run()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPServer

public TCPServer()

TCPServer

public TCPServer(int port,
                 ConfigurationContext configContext)
          throws AxisFault

TCPServer

public TCPServer(int port,
                 String dir)
          throws AxisFault
Method Detail

init

public void init(ConfigurationContext axisConf,
                 TransportInDescription transprtIn)
          throws AxisFault
Specified by:
init in interface TransportListener
Throws:
AxisFault

main

public static void main(String[] args)
                 throws AxisFault,
                        NumberFormatException
Throws:
AxisFault
NumberFormatException

run

public void run()
Specified by:
run in interface Runnable

start

public void start()
           throws AxisFault
Specified by:
start in interface TransportListener
Throws:
AxisFault

openSocket

public ServerSocket openSocket(int port)
                        throws AxisFault
Controls the number of server sockets kept open.

Throws:
AxisFault

stop

public void stop()
          throws AxisFault
Specified by:
stop in interface TransportListener
Throws:
AxisFault

getConfigurationContext

public ConfigurationContext getConfigurationContext()

getEPRForService

public EndpointReference getEPRForService(String serviceName,
                                          String ip)
                                   throws AxisFault
I fthe hostAddress parameter is present in axis2.xml then the EPR will be created by taking the hostAddres into account (non-Javadoc)

Specified by:
getEPRForService in interface TransportListener
Parameters:
serviceName -
ip -
Throws:
AxisFault
See Also:
TransportListener.getEPRForService(String, String)

getEPRsForService

public EndpointReference[] getEPRsForService(String serviceName,
                                             String ip)
                                      throws AxisFault
Specified by:
getEPRsForService in interface TransportListener
Throws:
AxisFault