com.icegreen.greenmail.util
Class ServerSetup

java.lang.Object
  extended by com.icegreen.greenmail.util.ServerSetup

public class ServerSetup
extends Object

Defines the default ports

smtp25
smtps465
pop3110
pop3s995
imap143
imaps993
Use ServerSetupTest for non-default ports

Since:
Jan 28, 2006 Use ServerSetupTest for non-default ports
Version:
$Id: $
Author:
Wael Chatila

Field Summary
static ServerSetup[] ALL
           
static ServerSetup IMAP
           
static ServerSetup IMAPS
           
static ServerSetup POP3
           
static ServerSetup POP3S
           
static String PROTOCOL_IMAP
           
static String PROTOCOL_IMAPS
           
static String PROTOCOL_POP3
           
static String PROTOCOL_POP3S
           
static String PROTOCOL_SMTP
           
static String PROTOCOL_SMTPS
           
static ServerSetup SMTP
           
static ServerSetup[] SMTP_IMAP
           
static ServerSetup[] SMTP_POP3
           
static ServerSetup[] SMTP_POP3_IMAP
           
static ServerSetup SMTPS
           
static ServerSetup[] SMTPS_IMAPS
           
static ServerSetup[] SMTPS_POP3S
           
static ServerSetup[] SMTPS_POP3S_IMAPS
           
 
Constructor Summary
ServerSetup(int port, String bindAddress, String protocol)
           
 
Method Summary
 String getBindAddress()
           
 int getPort()
           
 String getProtocol()
           
 boolean isSecure()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL_SMTP

public static final String PROTOCOL_SMTP
See Also:
Constant Field Values

PROTOCOL_SMTPS

public static final String PROTOCOL_SMTPS
See Also:
Constant Field Values

PROTOCOL_POP3

public static final String PROTOCOL_POP3
See Also:
Constant Field Values

PROTOCOL_POP3S

public static final String PROTOCOL_POP3S
See Also:
Constant Field Values

PROTOCOL_IMAP

public static final String PROTOCOL_IMAP
See Also:
Constant Field Values

PROTOCOL_IMAPS

public static final String PROTOCOL_IMAPS
See Also:
Constant Field Values

SMTP

public static final ServerSetup SMTP

SMTPS

public static final ServerSetup SMTPS

POP3

public static final ServerSetup POP3

POP3S

public static final ServerSetup POP3S

IMAP

public static final ServerSetup IMAP

IMAPS

public static final ServerSetup IMAPS

SMTP_POP3

public static final ServerSetup[] SMTP_POP3

SMTP_IMAP

public static final ServerSetup[] SMTP_IMAP

SMTP_POP3_IMAP

public static final ServerSetup[] SMTP_POP3_IMAP

SMTPS_POP3S

public static final ServerSetup[] SMTPS_POP3S

SMTPS_POP3S_IMAPS

public static final ServerSetup[] SMTPS_POP3S_IMAPS

SMTPS_IMAPS

public static final ServerSetup[] SMTPS_IMAPS

ALL

public static final ServerSetup[] ALL
Constructor Detail

ServerSetup

public ServerSetup(int port,
                   String bindAddress,
                   String protocol)
Method Detail

isSecure

public boolean isSecure()

getProtocol

public String getProtocol()

getBindAddress

public String getBindAddress()

getPort

public int getPort()