org.apache.axis2.transport.tcp
Class TCPServer

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

public class TCPServer
extends java.lang.Object
implements java.lang.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, java.lang.String dir)
           
 
Method Summary
 void destroy()
           
 ConfigurationContext getConfigurationContext()
           
 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)
 EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip)
           
 SessionContext getSessionContext(MessageContext messageContext)
          To get the sessionContext transport dependent manner.
 void init(ConfigurationContext axisConf, 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,
                 ConfigurationContext configContext)
          throws AxisFault
Throws:
AxisFault

TCPServer

public TCPServer(int port,
                 java.lang.String dir)
          throws AxisFault
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(java.lang.String[] args)
                 throws AxisFault,
                        java.lang.NumberFormatException
Throws:
AxisFault
java.lang.NumberFormatException

run

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

start

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

openSocket

public java.net.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(java.lang.String serviceName,
                                          java.lang.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:
TransportListener.getEPRForService(String, String)

getEPRsForService

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

getSessionContext

public SessionContext getSessionContext(MessageContext messageContext)
Description copied from interface: TransportListener
To get the sessionContext transport dependent manner. So that transport listener can return its own implementation of session managment

Specified by:
getSessionContext in interface TransportListener
Parameters:
messageContext - : MessageContext which has all the relavent data
Returns:
SessionContext

destroy

public void destroy()
Specified by:
destroy in interface TransportListener


Copyright © 2007 Apache Web Services Project. All Rights Reserved.