Package org.apache.axis2.transport.xmpp
Class XMPPListener
java.lang.Object
org.apache.axis2.transport.xmpp.XMPPListener
- All Implemented Interfaces:
org.apache.axis2.kernel.TransportListener
-
Field Summary
Fields inherited from interface org.apache.axis2.kernel.TransportListener
HOST_ADDRESS, PARAM_PORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()org.apache.axis2.addressing.EndpointReferencegetEPRForService(String serviceName, String ip) Returns Default EPR for a given Service name & IPorg.apache.axis2.addressing.EndpointReference[]getEPRsForService(String serviceName, String ip) Returns all EPRs for a given Service name & IPorg.apache.axis2.context.SessionContextgetSessionContext(org.apache.axis2.context.MessageContext messageContext) voidinit(org.apache.axis2.context.ConfigurationContext configurationCtx, org.apache.axis2.description.TransportInDescription transportIn) Initializing the XMPPListener.voidstart()Start a pool of Workers.voidstop()Stop XMPP listener & disconnect from all XMPP Servers
-
Constructor Details
-
XMPPListener
public XMPPListener()
-
-
Method Details
-
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:
initin interfaceorg.apache.axis2.kernel.TransportListener- Throws:
org.apache.axis2.AxisFault
-
stop
public void stop()Stop XMPP listener & disconnect from all XMPP Servers- Specified by:
stopin interfaceorg.apache.axis2.kernel.TransportListener
-
getEPRForService
public org.apache.axis2.addressing.EndpointReference getEPRForService(String serviceName, String ip) throws org.apache.axis2.AxisFault Returns Default EPR for a given Service name & IP- Parameters:
serviceName-ip-- Throws:
org.apache.axis2.AxisFault
-
getEPRsForService
public org.apache.axis2.addressing.EndpointReference[] getEPRsForService(String serviceName, String ip) throws org.apache.axis2.AxisFault Returns all EPRs for a given Service name & IP- Specified by:
getEPRsForServicein interfaceorg.apache.axis2.kernel.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:
getSessionContextin interfaceorg.apache.axis2.kernel.TransportListener
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.apache.axis2.kernel.TransportListener
-
start
public void start() throws org.apache.axis2.AxisFaultStart a pool of Workers. For each connection in connectionFactories, assign a packer listener. This packet listener will trigger when a message arrives.- Specified by:
startin interfaceorg.apache.axis2.kernel.TransportListener- Throws:
org.apache.axis2.AxisFault
-