geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ke...@apache.org
Subject svn commit: r379521 - /geronimo/branches/1.0/modules/mail/src/java/org/apache/geronimo/mail/NullTransport.java
Date Tue, 21 Feb 2006 16:37:29 GMT
Author: kevan
Date: Tue Feb 21 08:37:28 2006
New Revision: 379521

URL: http://svn.apache.org/viewcvs?rev=379521&view=rev
Log:
Add simple protocolConnect implementation to NullTransport. See GERONIMO-1643

Modified:
    geronimo/branches/1.0/modules/mail/src/java/org/apache/geronimo/mail/NullTransport.java

Modified: geronimo/branches/1.0/modules/mail/src/java/org/apache/geronimo/mail/NullTransport.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.0/modules/mail/src/java/org/apache/geronimo/mail/NullTransport.java?rev=379521&r1=379520&r2=379521&view=diff
==============================================================================
--- geronimo/branches/1.0/modules/mail/src/java/org/apache/geronimo/mail/NullTransport.java
(original)
+++ geronimo/branches/1.0/modules/mail/src/java/org/apache/geronimo/mail/NullTransport.java
Tue Feb 21 08:37:28 2006
@@ -34,4 +34,9 @@
     public void sendMessage(Message message, Address[] addresses) throws MessagingException
{
         // do nothing
     }
+
+    protected boolean protocolConnect(String host, int port, String user, String password)
throws MessagingException {
+        return true; // always connect
+    }
+
 }



Mime
View raw message