Package org.apache.axis2.transport.xmpp
Class XMPPSender
java.lang.Object
org.apache.axis2.handlers.AbstractHandler
org.apache.axis2.transport.xmpp.XMPPSender
- All Implemented Interfaces:
org.apache.axis2.engine.Handler,org.apache.axis2.kernel.TransportSender
public class XMPPSender
extends org.apache.axis2.handlers.AbstractHandler
implements org.apache.axis2.kernel.TransportSender
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler
org.apache.axis2.engine.Handler.InvocationResponse -
Field Summary
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup(org.apache.axis2.context.MessageContext msgContext) voidinit(org.apache.axis2.context.ConfigurationContext confContext, org.apache.axis2.description.TransportOutDescription transportOut) Initialize the transport sender by reading pre-defined connection factories for outgoing messages.org.apache.axis2.engine.Handler.InvocationResponseinvoke(org.apache.axis2.context.MessageContext msgContext) static voidprocessChatMessage(org.apache.axis2.context.MessageContext msgCtx) Process message requests that came in through chat clientsvoidsendMessage(org.apache.axis2.context.MessageContext msgCtx, String targetAddress, org.apache.axis2.kernel.OutTransportInfo outTransportInfo) Send the given message over XMPP transportvoidstop()Methods inherited from class org.apache.axis2.handlers.AbstractHandler
flowComplete, getHandlerDesc, getName, getParameter, init, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.axis2.engine.Handler
flowComplete, getHandlerDesc, getName, getParameter, init
-
Constructor Details
-
XMPPSender
public XMPPSender()
-
-
Method Details
-
cleanup
public void cleanup(org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault - Specified by:
cleanupin interfaceorg.apache.axis2.kernel.TransportSender- Throws:
org.apache.axis2.AxisFault
-
init
public void init(org.apache.axis2.context.ConfigurationContext confContext, org.apache.axis2.description.TransportOutDescription transportOut) throws org.apache.axis2.AxisFault Initialize the transport sender by reading pre-defined connection factories for outgoing messages. These will create sessions (one per each destination dealt with) to be used when messages are being sent.- Specified by:
initin interfaceorg.apache.axis2.kernel.TransportSender- Parameters:
confContext- the configuration contexttransportOut- the transport sender definition from axis2.xml- Throws:
org.apache.axis2.AxisFault- on error
-
stop
public void stop()- Specified by:
stopin interfaceorg.apache.axis2.kernel.TransportSender
-
invoke
public org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault - Specified by:
invokein interfaceorg.apache.axis2.engine.Handler- Throws:
org.apache.axis2.AxisFault
-
sendMessage
public void sendMessage(org.apache.axis2.context.MessageContext msgCtx, String targetAddress, org.apache.axis2.kernel.OutTransportInfo outTransportInfo) throws org.apache.axis2.AxisFault Send the given message over XMPP transport- Parameters:
msgCtx- the axis2 message context- Throws:
org.apache.axis2.AxisFault- on error
-
processChatMessage
public static void processChatMessage(org.apache.axis2.context.MessageContext msgCtx) throws org.apache.axis2.AxisFault Process message requests that came in through chat clients- Parameters:
msgCtx-- Throws:
org.apache.axis2.AxisFault
-