org.jboss.net.axis.transport.mailto.client
Class SyncMailSender

java.lang.Object
  extended byBasicHandler
      extended byorg.jboss.net.axis.transport.mailto.client.BaseMailSender (src) 
          extended byorg.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

Field Summary
static long DEFAULT_TIMEOUT
           
static java.lang.String FOLDER_NAME
           
static java.lang.String INBOX
           
static java.lang.String PASSWORD
           
static java.lang.String TIMEOUT
           
static java.lang.String USERNAME
           
 
Fields inherited from class org.jboss.net.axis.transport.mailto.client.BaseMailSender (src)
log, MAIL_PROPS, mailProps, mailSessionName, SESSION_NAME, TRANS_PROPS
 
Fields inherited from interface org.jboss.net.axis.transport.mailto.MailConstants (src)
HEADER_CONTENT_TRANSFER_ENCODING, HEADER_CONTENT_TYPE, HEADER_FROM, HEADER_IN_REPLY_TO, HEADER_MESSAGE_ID, HEADER_TO
 
Constructor Summary
SyncMailSender()
           
 
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 org.jboss.net.axis.transport.mailto.client.BaseMailSender (src)
archiveMessage, getJavaMailProperties, getMailSession, invoke, sendMail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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)
Constructor Detail

SyncMailSender

public SyncMailSender()
Method Detail

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()