public class XMPPSender
extends org.apache.axis2.handlers.AbstractHandler
implements org.apache.axis2.transport.TransportSender
| Constructor and Description |
|---|
XMPPSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(org.apache.axis2.context.MessageContext msgContext) |
void |
init(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.InvocationResponse |
invoke(org.apache.axis2.context.MessageContext msgContext) |
static void |
processChatMessage(org.apache.axis2.context.MessageContext msgCtx)
Process message requests that came in through chat clients
|
void |
sendMessage(org.apache.axis2.context.MessageContext msgCtx,
String targetAddress,
org.apache.axis2.transport.OutTransportInfo outTransportInfo)
Send the given message over XMPP transport
|
void |
stop() |
flowComplete, getHandlerDesc, getName, getParameter, init, toStringpublic void cleanup(org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
cleanup in interface org.apache.axis2.transport.TransportSenderorg.apache.axis2.AxisFaultpublic void init(org.apache.axis2.context.ConfigurationContext confContext,
org.apache.axis2.description.TransportOutDescription transportOut)
throws org.apache.axis2.AxisFault
init in interface org.apache.axis2.transport.TransportSenderconfContext - the configuration contexttransportOut - the transport sender definition from axis2.xmlorg.apache.axis2.AxisFault - on errorpublic void stop()
stop in interface org.apache.axis2.transport.TransportSenderpublic org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
invoke in interface org.apache.axis2.engine.Handlerorg.apache.axis2.AxisFaultpublic void sendMessage(org.apache.axis2.context.MessageContext msgCtx,
String targetAddress,
org.apache.axis2.transport.OutTransportInfo outTransportInfo)
throws org.apache.axis2.AxisFault
msgCtx - the axis2 message contextorg.apache.axis2.AxisFault - on errorpublic static void processChatMessage(org.apache.axis2.context.MessageContext msgCtx)
throws org.apache.axis2.AxisFault
msgCtx - org.apache.axis2.AxisFaultCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.