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.transport.TransportSender
public class XMPPSender
- extends org.apache.axis2.handlers.AbstractHandler
- implements org.apache.axis2.transport.TransportSender
| Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler |
org.apache.axis2.engine.Handler.InvocationResponse |
| Fields inherited from class org.apache.axis2.handlers.AbstractHandler |
handlerDesc |
|
Method Summary |
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,
java.lang.String targetAddress,
org.apache.axis2.transport.OutTransportInfo outTransportInfo)
Send the given message over XMPP transport |
void |
stop()
|
| Methods inherited from class org.apache.axis2.handlers.AbstractHandler |
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.axis2.engine.Handler |
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init |
XMPPSender
public XMPPSender()
cleanup
public void cleanup(org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
- Specified by:
cleanup in interface org.apache.axis2.transport.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:
init in interface org.apache.axis2.transport.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:
stop in interface org.apache.axis2.transport.TransportSender
invoke
public org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
- Specified by:
invoke in interface org.apache.axis2.engine.Handler
- Throws:
org.apache.axis2.AxisFault
sendMessage
public void sendMessage(org.apache.axis2.context.MessageContext msgCtx,
java.lang.String targetAddress,
org.apache.axis2.transport.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
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.