org.apache.axis2.client
Class ListenerManager

java.lang.Object
  extended byorg.apache.axis2.client.ListenerManager

public class ListenerManager
extends Object

This class manages the listeners and depends heavily on static constructs and should be re-architectured. It allows the client to initialize only one ConfigurationContext in a given JVM.


Nested Class Summary
static class ListenerManager.TransportListenerState
          This class keeps information about the listener for a given transport.
 
Field Summary
static Map configurationContextMap
           
 
Constructor Summary
ListenerManager()
           
 
Method Summary
static void makeSureStarted(String transport, ConfigurationContext configurationContext)
          Starts a listener for a given transport if it has not already started.
static ServerSocket openSocket(int port)
          Controls the number of server sockets kept open.
static EndpointReference replyToEPR(ConfigurationContext configurationContext, String serviceName, String transport)
          Returns the replyTo endpoint reference for the servicename/transport combination.
static void stop(ConfigurationContext configurationContext, String transport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configurationContextMap

public static Map configurationContextMap
Constructor Detail

ListenerManager

public ListenerManager()
Method Detail

makeSureStarted

public static void makeSureStarted(String transport,
                                   ConfigurationContext configurationContext)
                            throws AxisFault
Starts a listener for a given transport if it has not already started.

Parameters:
transport -
configurationContext -
Throws:
AxisFault

openSocket

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

Throws:
AxisFault

replyToEPR

public static EndpointReference replyToEPR(ConfigurationContext configurationContext,
                                           String serviceName,
                                           String transport)
                                    throws AxisFault
Returns the replyTo endpoint reference for the servicename/transport combination.

Parameters:
serviceName -
transport -
Returns:
endpoint reference
Throws:
AxisFault

stop

public static void stop(ConfigurationContext configurationContext,
                        String transport)
                 throws AxisFault
Throws:
AxisFault