public class SMTPServer extends AbstractProtocolAsyncServer implements SMTPServerMBean
| Modifier and Type | Class and Description |
|---|---|
class |
SMTPServer.SMTPHandlerConfigurationDataImpl
A class to provide SMTP handler configuration to the handlers
|
connectionLimit, connPerIP, DEFAULT_BACKLOG, DEFAULT_MAX_EXECUTOR_COUNT, DEFAULT_TIMEOUT, HELLO_NAME, jmxName| Constructor and Description |
|---|
SMTPServer() |
| Modifier and Type | Method and Description |
|---|---|
protected org.jboss.netty.channel.ChannelUpstreamHandler |
createCoreHandler() |
void |
doConfigure(org.apache.commons.configuration.HierarchicalConfiguration configuration) |
boolean |
getAddressBracketsEnforcement()
Return true if brackets around addresses in the MAIL and RCPT are
required
|
protected Class<? extends HandlersPackage> |
getCoreHandlersPackage()
Return the
HandlersPackage which is responsible to load the core ProtocolHandler |
protected String |
getDefaultJMXName()
Return the default name of the the server in JMX if none is configured
via "jmxname" in the configuration
|
protected int |
getDefaultPort()
Return the default port which will get used for this server if non is
specify in the configuration
|
boolean |
getHeloEhloEnforcement()
Return true if a HELO/EHLO is required when connecting to this server
|
String |
getHeloName()
Return the hello name
|
protected Class<? extends HandlersPackage> |
getJMXHandlersPackage()
Return the
HandlersPackage which is responsible to load the jmx ProtocolHandler |
long |
getMaximalMessageSize()
Return the maximum allowed size of the message
|
String |
getServiceType()
Return the service type of the server
|
protected void |
preInit()
This method is called on init of the Server.
|
void |
setAddressBracketsEnforcement(boolean enforceAddressBrackets)
Enable or disable brackets enforcement around addressed in the MAIL and
RCPT command
|
void |
setDNSService(DNSService dns) |
void |
setHeloEhloEnforcement(boolean enforceHeloEHlo)
Enable or disable the need of the HELO/EHLO
|
void |
setMaximalMessageSize(long maxSize)
Set the maximum allowed size of messages.
|
getProtocolHandlerChain, postDestroy, setProtocolHandlerLoaderconfigure, configureBootstrap, configureHelloName, createBossExecutor, createExecutionHander, createPipelineFactory, createWorkerExecutor, destroy, getBoundAddresses, getConnectionCountHandler, getCurrentConnections, getEnabledCipherSuites, getEncryption, getExecutionHandler, getFileSystem, getHandledConnections, getHelloName, getLogger, getMaximumConcurrentConnections, getSocketType, getStartTLSSupported, getThreadPoolJMXPath, init, isEnabled, isStarted, registerMBean, setFileSystem, setLog, start, stop, unregisterMBeanbind, createSocketChannelFactory, getBacklog, getIoWorkerCount, getListenAddresses, getTimeout, isBound, setBacklog, setIoWorkerCount, setListenAddresses, setTimeout, unbindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSocketType, isEnabledgetBoundAddresses, getCurrentConnections, getHandledConnections, getMaximumConcurrentConnections, getSocketType, getStartTLSSupported, getTimeout, isEnabled, isStarted, start, stoppublic void setDNSService(DNSService dns)
protected void preInit()
throws Exception
AbstractConfigurableAsyncServerpreInit in class AbstractProtocolAsyncServerExceptionpublic void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration configuration)
throws org.apache.commons.configuration.ConfigurationException
doConfigure in class AbstractProtocolAsyncServerorg.apache.commons.configuration.ConfigurationExceptionprotected int getDefaultPort()
getDefaultPort in class AbstractConfigurableAsyncServerpublic String getServiceType()
ServerMBeangetServiceType in interface ServerMBeanServerMBean.getServiceType()public long getMaximalMessageSize()
SMTPServerMBeanSMTPServerMBean.getMaximalMessageSize()public boolean getAddressBracketsEnforcement()
SMTPServerMBeanSMTPServerMBean.getAddressBracketsEnforcement()public boolean getHeloEhloEnforcement()
SMTPServerMBeanSMTPServerMBean.getHeloEhloEnforcement()protected String getDefaultJMXName()
AbstractConfigurableAsyncServergetDefaultJMXName in class AbstractConfigurableAsyncServerAbstractConfigurableAsyncServer.getDefaultJMXName()public void setMaximalMessageSize(long maxSize)
SMTPServerMBeanpublic void setAddressBracketsEnforcement(boolean enforceAddressBrackets)
SMTPServerMBeanpublic void setHeloEhloEnforcement(boolean enforceHeloEHlo)
SMTPServerMBeanpublic String getHeloName()
SMTPServerMBeanSMTPServerMBean.getHeloName()protected org.jboss.netty.channel.ChannelUpstreamHandler createCoreHandler()
createCoreHandler in class AbstractConfigurableAsyncServerprotected Class<? extends HandlersPackage> getCoreHandlersPackage()
AbstractProtocolAsyncServerHandlersPackage which is responsible to load the core ProtocolHandlergetCoreHandlersPackage in class AbstractProtocolAsyncServerprotected Class<? extends HandlersPackage> getJMXHandlersPackage()
AbstractProtocolAsyncServerHandlersPackage which is responsible to load the jmx ProtocolHandlergetJMXHandlersPackage in class AbstractProtocolAsyncServerCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.