org.jboss.net.axis.transport.mailto.client
Class SyncMailSender
java.lang.Object
BasicHandler
org.jboss.net.axis.transport.mailto.client.BaseMailSender (src)
org.jboss.net.axis.transport.mailto.client.SyncMailSender
- All Implemented Interfaces:
- MailConstants (src)
- public class SyncMailSender
- extends BaseMailSender (src)
- Title:
- Synchronous Mail Transport
- Description:
- This is a Synchronous email Transport. It will block while waiting for a response.
This client side sender is really only usefull for testing.
- See Also:
- Serialized Form
Method Summary |
protected void |
checkResponse(MessageContext ctx)
Override this method if you want the client to block until it recieves a response.
In reality, this is probably only usefull for testing since email is not really a synchronous operation. |
protected java.lang.String |
getFolderName()
|
protected long |
getTimeout()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FOLDER_NAME
public static final java.lang.String FOLDER_NAME
- See Also:
- Constant Field Values (src)
USERNAME
public static final java.lang.String USERNAME
- See Also:
- Constant Field Values (src)
PASSWORD
public static final java.lang.String PASSWORD
- See Also:
- Constant Field Values (src)
INBOX
public static final java.lang.String INBOX
- See Also:
- Constant Field Values (src)
TIMEOUT
public static final java.lang.String TIMEOUT
- See Also:
- Constant Field Values (src)
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUT
- See Also:
- Constant Field Values (src)
SyncMailSender
public SyncMailSender()
getTimeout
protected long getTimeout()
checkResponse
protected void checkResponse(MessageContext ctx)
throws AxisFault
- Description copied from class:
BaseMailSender (src)
- Override this method if you want the client to block until it recieves a response.
In reality, this is probably only usefull for testing since email is not really a synchronous operation.
- Overrides:
checkResponse
in class BaseMailSender (src)
- Parameters:
ctx
-
- Throws:
AxisFault
getFolderName
protected java.lang.String getFolderName()