public class XMPPSender extends AbstractHandler implements TransportSender
Handler.InvocationResponsehandlerDesc| Constructor and Description |
|---|
XMPPSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(MessageContext msgContext) |
void |
init(ConfigurationContext confContext,
TransportOutDescription transportOut)
Initialize the transport sender by reading pre-defined connection factories for
outgoing messages.
|
Handler.InvocationResponse |
invoke(MessageContext msgContext) |
static void |
processChatMessage(MessageContext msgCtx)
Process message requests that came in through chat clients
|
void |
sendMessage(MessageContext msgCtx,
String targetAddress,
OutTransportInfo outTransportInfo)
Send the given message over XMPP transport
|
void |
stop() |
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcleanup, flowComplete, getHandlerDesc, getName, getParameter, initpublic void cleanup(MessageContext msgContext) throws AxisFault
cleanup in interface TransportSenderAxisFaultpublic void init(ConfigurationContext confContext, TransportOutDescription transportOut) throws AxisFault
init in interface TransportSenderconfContext - the configuration contexttransportOut - the transport sender definition from axis2.xmlAxisFault - on errorpublic void stop()
stop in interface TransportSenderpublic Handler.InvocationResponse invoke(MessageContext msgContext) throws AxisFault
public void sendMessage(MessageContext msgCtx, String targetAddress, OutTransportInfo outTransportInfo) throws AxisFault
msgCtx - the axis2 message contextAxisFault - on errorpublic static void processChatMessage(MessageContext msgCtx) throws AxisFault
msgCtx - AxisFaultCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.