org.apache.axis2.transport.xmpp
Class XMPPListener

java.lang.Object
  extended by org.apache.axis2.transport.xmpp.XMPPListener
All Implemented Interfaces:
TransportListener

public class XMPPListener
extends java.lang.Object
implements TransportListener


Field Summary
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
XMPPListener()
           
 
Method Summary
 void destroy()
           
 EndpointReference getEPRForService(java.lang.String serviceName, java.lang.String ip)
          Returns Default EPR for a given Service name & IP
 EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip)
          Returns all EPRs for a given Service name & IP
 SessionContext getSessionContext(MessageContext messageContext)
          To get the sessionContext transport dependent manner.
 void init(ConfigurationContext configurationCtx, TransportInDescription transportIn)
          Initializing the XMPPListener.
 void start()
          Start a pool of Workers.
 void stop()
          Stop XMPP listener & disconnect from all XMPP Servers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMPPListener

public XMPPListener()
Method Detail

init

public void init(ConfigurationContext configurationCtx,
                 TransportInDescription transportIn)
          throws AxisFault
Initializing the XMPPListener. Retrieve connection details provided in xmpp transport receiver, connect to those servers & start listening in for messages.

Specified by:
init in interface TransportListener
Throws:
AxisFault

stop

public void stop()
Stop XMPP listener & disconnect from all XMPP Servers

Specified by:
stop in interface TransportListener

getEPRForService

public EndpointReference getEPRForService(java.lang.String serviceName,
                                          java.lang.String ip)
                                   throws AxisFault
Returns Default EPR for a given Service name & IP

Specified by:
getEPRForService in interface TransportListener
Parameters:
serviceName -
ip -
Throws:
AxisFault

getEPRsForService

public EndpointReference[] getEPRsForService(java.lang.String serviceName,
                                             java.lang.String ip)
                                      throws AxisFault
Returns all EPRs for a given Service name & IP

Specified by:
getEPRsForService in interface TransportListener
Parameters:
serviceName -
ip -
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

start

public void start()
           throws AxisFault
Start a pool of Workers. For each connection in connectionFactories, assign a packer listener. This packet listener will trigger when a message arrives.

Specified by:
start in interface TransportListener
Throws:
AxisFault


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