de.saly.javamail.mock2
Class MockTransport

java.lang.Object
  extended by javax.mail.Service
      extended by javax.mail.Transport
          extended by de.saly.javamail.mock2.MockTransport

public class MockTransport
extends javax.mail.Transport


Field Summary
protected  org.slf4j.Logger logger
           
 
Fields inherited from class javax.mail.Service
debug, session, url
 
Constructor Summary
MockTransport(javax.mail.Session session, javax.mail.URLName urlname)
           
 
Method Summary
 void connect(String host, int port, String user, String password)
           
 void sendMessage(javax.mail.Message msg, javax.mail.Address[] addresses)
           
 
Methods inherited from class javax.mail.Transport
addTransportListener, notifyTransportListeners, removeTransportListener, send, send, send, send
 
Methods inherited from class javax.mail.Service
addConnectionListener, close, connect, connect, connect, finalize, getURLName, isConnected, notifyConnectionListeners, protocolConnect, queueEvent, removeConnectionListener, setConnected, setURLName, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected final org.slf4j.Logger logger
Constructor Detail

MockTransport

public MockTransport(javax.mail.Session session,
                     javax.mail.URLName urlname)
Method Detail

connect

public void connect(String host,
                    int port,
                    String user,
                    String password)
             throws javax.mail.MessagingException
Overrides:
connect in class javax.mail.Service
Throws:
javax.mail.MessagingException

sendMessage

public void sendMessage(javax.mail.Message msg,
                        javax.mail.Address[] addresses)
                 throws javax.mail.MessagingException
Specified by:
sendMessage in class javax.mail.Transport
Throws:
javax.mail.MessagingException


Copyright © 2014. All rights reserved.