org.apache.axis2.transport.tcp
Class TCPServer
java.lang.Object
org.apache.axis2.transport.tcp.TCPServer
- All Implemented Interfaces:
- Runnable, TransportListener
- public class TCPServer
- extends Object
- implements Runnable, TransportListener
Class TCPServer
Field Summary |
protected org.apache.commons.logging.Log |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected org.apache.commons.logging.Log log
TCPServer
public TCPServer()
TCPServer
public TCPServer(int port,
ConfigurationContext configContext)
throws AxisFault
TCPServer
public TCPServer(int port,
String dir)
throws AxisFault
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
- Throws:
AxisFault
- See Also:
org.apache.axis2.transport.TransportListener#replyToEPR(String)