org.apache.axis2.transport.tcp
Class TCPServer

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

public class TCPServer
extends java.lang.Object
implements java.lang.Runnable, org.apache.axis2.transport.TransportListener

Class TCPServer


Field Summary
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
TCPServer()
           
TCPServer(int port, org.apache.axis2.context.ConfigurationContext configContext)
           
TCPServer(int port, java.lang.String dir)
           
 
Method Summary
 void destroy()
           
 org.apache.axis2.context.ConfigurationContext getConfigurationContext()
           
 org.apache.axis2.addressing.EndpointReference getEPRForService(java.lang.String serviceName, java.lang.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)
 org.apache.axis2.addressing.EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip)
           
 org.apache.axis2.context.SessionContext getSessionContext(org.apache.axis2.context.MessageContext messageContext)
           
 void init(org.apache.axis2.context.ConfigurationContext axisConf, org.apache.axis2.description.TransportInDescription transprtIn)
           
static void main(java.lang.String[] args)
           
 java.net.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,
                 org.apache.axis2.context.ConfigurationContext configContext)
          throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

TCPServer

public TCPServer(int port,
                 java.lang.String dir)
          throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault
Method Detail

init

public void init(org.apache.axis2.context.ConfigurationContext axisConf,
                 org.apache.axis2.description.TransportInDescription transprtIn)
          throws org.apache.axis2.AxisFault
Specified by:
init in interface org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault

main

public static void main(java.lang.String[] args)
                 throws org.apache.axis2.AxisFault,
                        java.lang.NumberFormatException
Throws:
org.apache.axis2.AxisFault
java.lang.NumberFormatException

run

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

start

public void start()
           throws org.apache.axis2.AxisFault
Specified by:
start in interface org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault

openSocket

public java.net.ServerSocket openSocket(int port)
                                 throws org.apache.axis2.AxisFault
Controls the number of server sockets kept open.

Throws:
org.apache.axis2.AxisFault

stop

public void stop()
          throws org.apache.axis2.AxisFault
Specified by:
stop in interface org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault

getConfigurationContext

public org.apache.axis2.context.ConfigurationContext getConfigurationContext()

getEPRForService

public org.apache.axis2.addressing.EndpointReference getEPRForService(java.lang.String serviceName,
                                                                      java.lang.String ip)
                                                               throws org.apache.axis2.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 org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault
See Also:
TransportListener.getEPRForService(String, String)

getEPRsForService

public org.apache.axis2.addressing.EndpointReference[] getEPRsForService(java.lang.String serviceName,
                                                                         java.lang.String ip)
                                                                  throws org.apache.axis2.AxisFault
Specified by:
getEPRsForService in interface org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault

getSessionContext

public org.apache.axis2.context.SessionContext getSessionContext(org.apache.axis2.context.MessageContext messageContext)
Specified by:
getSessionContext in interface org.apache.axis2.transport.TransportListener

destroy

public void destroy()
Specified by:
destroy in interface org.apache.axis2.transport.TransportListener


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.