org.apache.james.protocols.smtp
Class SMTPConfigurationImpl

java.lang.Object
  extended by org.apache.james.protocols.smtp.SMTPConfigurationImpl
All Implemented Interfaces:
SMTPConfiguration

public class SMTPConfigurationImpl
extends Object
implements SMTPConfiguration


Field Summary
 String helloName
           
 
Constructor Summary
SMTPConfigurationImpl()
           
 
Method Summary
 String getHelloName()
          Returns the service wide hello name
 long getMaxMessageSize()
          Returns the service wide maximum message size in bytes.
 String getSMTPGreeting()
          Return the SMTPGreeting which should used.
 boolean isAuthRequired(String remoteIP)
          Returns whether SMTP AUTH is active for this server, and necessary for the IP address passed.
 boolean isRelayingAllowed(String remoteIP)
          Returns whether relaying is allowed for the IP address passed.
 boolean isStartTLSSupported()
          Return true if STARTTLS is supported.
 void setHeloEhloEnforcement(boolean enforceHeloEhlo)
           
 void setSMTPGreeting(String greeting)
           
 void setStartTLSSupported(boolean startTLSsupported)
           
 void setUseAddressBracketsEnforcement(boolean bracketsEnforcement)
           
 boolean useAddressBracketsEnforcement()
          Return wheter the mailserver will accept addresses without brackets enclosed.
 boolean useHeloEhloEnforcement()
          Returns whether the remote server needs to send a HELO/EHLO of its senders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

helloName

public String helloName
Constructor Detail

SMTPConfigurationImpl

public SMTPConfigurationImpl()
Method Detail

getHelloName

public String getHelloName()
Description copied from interface: SMTPConfiguration
Returns the service wide hello name

Specified by:
getHelloName in interface SMTPConfiguration
Returns:
the hello name

getMaxMessageSize

public long getMaxMessageSize()
Description copied from interface: SMTPConfiguration
Returns the service wide maximum message size in bytes.

Specified by:
getMaxMessageSize in interface SMTPConfiguration
Returns:
the maximum message size

isRelayingAllowed

public boolean isRelayingAllowed(String remoteIP)
Description copied from interface: SMTPConfiguration
Returns whether relaying is allowed for the IP address passed.

Specified by:
isRelayingAllowed in interface SMTPConfiguration
Parameters:
remoteIP - the remote IP address in String form
Returns:
whether relaying is allowed

isAuthRequired

public boolean isAuthRequired(String remoteIP)
Description copied from interface: SMTPConfiguration
Returns whether SMTP AUTH is active for this server, and necessary for the IP address passed.

Specified by:
isAuthRequired in interface SMTPConfiguration
Parameters:
remoteIP - the remote IP address in String form
Returns:
whether SMTP authentication is on

setHeloEhloEnforcement

public void setHeloEhloEnforcement(boolean enforceHeloEhlo)

useHeloEhloEnforcement

public boolean useHeloEhloEnforcement()
Description copied from interface: SMTPConfiguration
Returns whether the remote server needs to send a HELO/EHLO of its senders.

Specified by:
useHeloEhloEnforcement in interface SMTPConfiguration
Returns:
whether SMTP authentication is on

getSMTPGreeting

public String getSMTPGreeting()
Description copied from interface: SMTPConfiguration
Return the SMTPGreeting which should used.

Specified by:
getSMTPGreeting in interface SMTPConfiguration
Returns:
the SMTPGreeting

setSMTPGreeting

public void setSMTPGreeting(String greeting)

useAddressBracketsEnforcement

public boolean useAddressBracketsEnforcement()
Description copied from interface: SMTPConfiguration
Return wheter the mailserver will accept addresses without brackets enclosed.

Specified by:
useAddressBracketsEnforcement in interface SMTPConfiguration
Returns:
true or false

setUseAddressBracketsEnforcement

public void setUseAddressBracketsEnforcement(boolean bracketsEnforcement)

isStartTLSSupported

public boolean isStartTLSSupported()
Description copied from interface: SMTPConfiguration
Return true if STARTTLS is supported.

Specified by:
isStartTLSSupported in interface SMTPConfiguration
Returns:
starttls

setStartTLSSupported

public void setStartTLSSupported(boolean startTLSsupported)


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.