org.apache.axis2.transport.mail
Class MailTransportSender
java.lang.Object
org.apache.axis2.handlers.AbstractHandler
org.apache.axis2.transport.base.AbstractTransportSender
org.apache.axis2.transport.mail.MailTransportSender
- All Implemented Interfaces:
- org.apache.axis2.engine.Handler, ManagementSupport, org.apache.axis2.transport.TransportSender
public class MailTransportSender
- extends AbstractTransportSender
- implements ManagementSupport
The mail transport sender sends mail using an SMTP server configuration defined
in the axis2.xml's transport sender definition
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 |
init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportOutDescription transportOut)
Initialize the Mail sender and be ready to send messages |
void |
sendMessage(org.apache.axis2.context.MessageContext msgCtx,
java.lang.String targetAddress,
org.apache.axis2.transport.OutTransportInfo outTransportInfo)
Send the given message over the Mail transport |
Methods inherited from class org.apache.axis2.transport.base.AbstractTransportSender |
cleanup, createResponseMessageContext, getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getTimeoutsReceiving, getTimeoutsSending, getTransportName, handleException, handleException, handleIncomingMessage, invoke, logException, maintenenceShutdown, pause, resetStatistics, resume, stop, waitForSynchronousResponse |
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.transport.base.ManagementSupport |
getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getTimeoutsReceiving, getTimeoutsSending, maintenenceShutdown, pause, resetStatistics, resume |
Methods inherited from interface org.apache.axis2.engine.Handler |
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init |
MailTransportSender
public MailTransportSender()
- The public constructor
init
public void init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportOutDescription transportOut)
throws org.apache.axis2.AxisFault
- Initialize the Mail sender and be ready to send messages
- Specified by:
init
in interface org.apache.axis2.transport.TransportSender
- Overrides:
init
in class AbstractTransportSender
- Parameters:
cfgCtx
- the axis2 configuration contexttransportOut
- the transport-out description
- Throws:
org.apache.axis2.AxisFault
- on error
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 the Mail transport
- Specified by:
sendMessage
in class AbstractTransportSender
- Parameters:
msgCtx
- the axis2 message context
- Throws:
org.apache.axis2.AxisFault
- on error
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.