org.apache.axis2.clientapi
Class ListenerManager
java.lang.Object
org.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.
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 |
port
public static int port
listeners
public static java.util.HashMap listeners
configurationContext
public static ConfigurationContext configurationContext
ListenerManager
public ListenerManager()
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