org.apache.axis2.transport.xmpp
Class XMPPListener

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

public class XMPPListener
extends java.lang.Object
implements org.apache.axis2.transport.TransportListener


Field Summary
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
XMPPListener()
           
 
Method Summary
 void destroy()
           
 org.apache.axis2.addressing.EndpointReference getEPRForService(java.lang.String serviceName, java.lang.String ip)
          Returns Default EPR for a given Service name & IP
 org.apache.axis2.addressing.EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip)
          Returns all EPRs for a given Service name & IP
 org.apache.axis2.context.SessionContext getSessionContext(org.apache.axis2.context.MessageContext messageContext)
           
 void init(org.apache.axis2.context.ConfigurationContext configurationCtx, org.apache.axis2.description.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(org.apache.axis2.context.ConfigurationContext configurationCtx,
                 org.apache.axis2.description.TransportInDescription transportIn)
          throws org.apache.axis2.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 org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault

stop

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

Specified by:
stop in interface org.apache.axis2.transport.TransportListener

getEPRForService

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

Specified by:
getEPRForService in interface org.apache.axis2.transport.TransportListener
Parameters:
serviceName -
ip -
Throws:
org.apache.axis2.AxisFault

getEPRsForService

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

Specified by:
getEPRsForService in interface org.apache.axis2.transport.TransportListener
Parameters:
serviceName -
ip -
Throws:
org.apache.axis2.AxisFault

getSessionContext

public org.apache.axis2.context.SessionContext getSessionContext(org.apache.axis2.context.MessageContext messageContext)
Specified by:
getSessionContext in interface org.apache.axis2.transport.TransportListener

destroy

public void destroy()
Specified by:
destroy in interface org.apache.axis2.transport.TransportListener

start

public void start()
           throws org.apache.axis2.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 org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.