org.apache.axis2.transport.mail
Class MailClient

java.lang.Object
  extended by javax.mail.Authenticator
      extended by org.apache.axis2.transport.mail.MailClient

public class MailClient
extends javax.mail.Authenticator


Field Summary
protected  javax.mail.PasswordAuthentication authentication
           
static int CLEAR_MESSAGES
           
protected  java.lang.String from
           
protected  javax.mail.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)
           
 javax.mail.PasswordAuthentication getPasswordAuthentication()
           
 void sendMessage(java.lang.String to, java.lang.String subject, java.lang.String content, java.lang.String soapAction)
           
 
Methods inherited from class javax.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
 
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

authentication

protected javax.mail.PasswordAuthentication authentication

from

protected java.lang.String from

session

protected javax.mail.Session session
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

checkInbox

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

sendMessage

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

getPasswordAuthentication

public javax.mail.PasswordAuthentication getPasswordAuthentication()
Overrides:
getPasswordAuthentication in class javax.mail.Authenticator


Copyright © 2007 Apache Web Services Project. All Rights Reserved.