org.apache.axis2.transport.mail
Class MailClient

java.lang.Object
  extended byAuthenticator
      extended byorg.apache.axis2.transport.mail.MailClient

public class MailClient
extends Authenticator

See Also:
Serialized Form

Field Summary
protected  PasswordAuthentication authentication
           
static int CLEAR_MESSAGES
           
protected  java.lang.String from
           
protected  Session session
           
static int SHOW_AND_CLEAR
           
static int SHOW_MESSAGES
           
 
Constructor Summary
MailClient(java.lang.String user, java.lang.String host)
           
MailClient(java.lang.String user, java.lang.String host, java.lang.String password)
           
MailClient(java.lang.String user, java.lang.String host, java.lang.String password, boolean debug)
           
 
Method Summary
 int checkInbox(int mode)
           
 PasswordAuthentication getPasswordAuthentication()
           
 void sendMessage(java.lang.String to, java.lang.String subject, java.lang.String content, java.lang.String soapAction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_MESSAGES

public static final int SHOW_MESSAGES
See Also:
Constant Field Values

CLEAR_MESSAGES

public static final int CLEAR_MESSAGES
See Also:
Constant Field Values

SHOW_AND_CLEAR

public static final int SHOW_AND_CLEAR
See Also:
Constant Field Values

from

protected java.lang.String from

session

protected Session session

authentication

protected PasswordAuthentication authentication
Constructor Detail

MailClient

public MailClient(java.lang.String user,
                  java.lang.String host)

MailClient

public MailClient(java.lang.String user,
                  java.lang.String host,
                  java.lang.String password)

MailClient

public MailClient(java.lang.String user,
                  java.lang.String host,
                  java.lang.String password,
                  boolean debug)
Method Detail

getPasswordAuthentication

public PasswordAuthentication getPasswordAuthentication()

sendMessage

public void sendMessage(java.lang.String to,
                        java.lang.String subject,
                        java.lang.String content,
                        java.lang.String soapAction)
                 throws MessagingException
Throws:
MessagingException

checkInbox

public int checkInbox(int mode)
               throws MessagingException,
                      java.io.IOException
Throws:
MessagingException
java.io.IOException