org.apache.axis2.clientapi
Class ListenerManager

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

public class ListenerManager
extends java.lang.Object

This manages the Listners, this class havely depends on the static constructs and should be re-architectured. This class only allow the Client to keep one ConfigurationContext in a given JVM.


Nested Class Summary
static class ListenerManager.TransportListnerState
          Class keep information about the listener for a given transport
 
Field Summary
static ConfigurationContext configurationContext
           
static java.util.HashMap listeners
           
static int port
           
 
Constructor Summary
ListenerManager()
           
 
Method Summary
 int getPort()
           
static void makeSureStarted(java.lang.String transport, ConfigurationContext configurationContext)
          This Method starts a Listenet if it is not already started.
static java.net.ServerSocket openSocket(int port)
          this method control the number of server sockets kept open
static EndpointReference replyToEPR(java.lang.String serviceName, java.lang.String transport)
           
static void stop(java.lang.String transport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

public static int port

listeners

public static java.util.HashMap listeners

configurationContext

public static ConfigurationContext configurationContext
Constructor Detail

ListenerManager

public ListenerManager()
Method Detail

makeSureStarted

public static final void makeSureStarted(java.lang.String transport,
                                         ConfigurationContext configurationContext)
                                  throws AxisFault
This Method starts a Listenet if it is not already started. But only a one listener started for a given one transport.

Parameters:
transport -
configurationContext -
Throws:
AxisFault

stop

public static final void stop(java.lang.String transport)
                       throws AxisFault
Throws:
AxisFault

replyToEPR

public static EndpointReference replyToEPR(java.lang.String serviceName,
                                           java.lang.String transport)
                                    throws AxisFault
Parameters:
serviceName -
transport -
Returns:
reply to URL return will direct the response for the message to the given transport listener
Throws:
AxisFault

getPort

public int getPort()

openSocket

public static java.net.ServerSocket openSocket(int port)
                                        throws AxisFault
this method control the number of server sockets kept open

Throws:
AxisFault