1   /*
2    * Created by IntelliJ IDEA.
3    * User: owen
4    * Date: Dec 9, 2002
5    * Time: 2:45:14 PM
6    * CVS Revision: $Revision: 1.17 $
7    * Last CVS Commit: $Date: 2005/09/13 01:21:55 $
8    * Author of last CVS Commit: $Author: jturner $
9    * To change this template use Options | File Templates.
10   */
11  package com.atlassian.mail.server;
12  
13  import com.atlassian.mail.Email;
14  import com.atlassian.mail.MailConstants;
15  import com.atlassian.mail.MailException;
16  import com.atlassian.mail.MailProtocol;
17  
18  import java.io.PrintStream;
19  
20  public interface SMTPMailServer extends MailServer
21  {
22      @Deprecated
23      String DEFAULT_SMTP_PORT = MailConstants.DEFAULT_SMTP_PORT;
24  
25      String getDefaultFrom();
26  
27      void setDefaultFrom(String from);
28  
29      String getPrefix();
30  
31      void setPrefix(String prefix);
32  
33      boolean isSessionServer();
34  
35      void setSessionServer(boolean sessionServer);
36  
37      String getJndiLocation();
38  
39      void setJndiLocation(String jndiLocation);
40  
41      public boolean isRemovePrecedence();
42  
43      public void setRemovePrecedence(boolean precedence);
44  
45      void send(Email email) throws MailException;
46  
47      void quietSend(Email email) throws MailException;
48  
49      /**
50       * Enable or disable SMTP-level logging.
51       *
52       * @param debug Turn debugging on or off
53       */
54      void setDebug(boolean debug);
55  
56      /**
57       * If debug is enabled, output will go to this stream.
58      * @param debugStream An optional stream to send debug messages to. If null, System.out is used.
59      */
60      void setDebugStream(PrintStream debugStream);
61  
62      /**
63       * Whether  logging is enabled.
64       */
65      boolean getDebug();
66  
67      /**
68       * Where debug logs currently go to.
69       */
70      PrintStream getDebugStream();
71  
72      boolean isTlsRequired();
73  
74      void setTlsRequired(boolean tlsRequired);
75  
76  
77  }